function wpmem_install() { require_once 'wp-members-install.php'; wpmem_do_install(); }
/** * Install default plugin options for a newly added blog in multisite. * * @since 2.9.3 * * @param $blog_id * @param $user_id * @param $domain * @param $path * @param $site_id * @param $meta */ function wpmem_mu_new_site($blog_id, $user_id, $domain, $path, $site_id, $meta) { /** * Load the install file. */ require_once WPMEM_PATH . 'wp-members-install.php'; // Switch to the new blog. switch_to_blog($blog_id); // Run the WP-Members install. wpmem_do_install(); // Switch back to the current blog. restore_current_blog(); }
/** * Install default plugin options for a newly added blog in multisite. * * @since 2.9.3 * * @param $blog_id * @param $user_id * @param $domain * @param $path * @param $site_id * @param $meta */ function wpmem_mu_new_site($blog_id, $user_id, $domain, $path, $site_id, $meta) { require_once 'wp-members-install.php'; switch_to_blog($blog_id); wpmem_do_install(); restore_current_blog(); }