How to pull data from child installation to parent theme

You want to enable WPMU and make custom functions to get/post data from one blog to another (using switch_to_blog). WPMU installs different tables for each blog you create on one WP installation. If you want to have the same design, child theme can be enabled on one WP installation. You cannot switch between child and … Read more

Multisite are not creating folders for the subsites

You can find the various recommended .htaccess configurations on the Codex’s .htaccess page. Here’s the one for subdirectory Multisite later than WordPress 3.5: RewriteEngine On RewriteBase / RewriteRule ^index\.php$ – [L] # add a trailing slash to /wp-admin RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L] RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^ – [L] RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) … Read more

Redirect Plugins.php to New Plugin Page

After a little bit of trial and error, I finally got my code to work. This will redirect http://example.com/wp-admin/plugins to http://example.com/wp-admin/admin.php?page=pretty-plugins.php if the current user doesn’t have access to update core. add_action( ‘admin_menu’, ‘block_direct_plugin_page_access’ ); function block_direct_plugin_page_access() { global $pagenow; if ( ! current_user_can(‘update_core’) && ‘plugins.php’ === $pagenow ) { if ( function_exists(‘admin_url’) ) { … Read more