performance - Selectively disabling plugins from loading in Wordpress admin area -



performance - Selectively disabling plugins from loading in Wordpress admin area -

does know how disable plugins loading in back-end/admin area of wordpress?

currently i'm running site has many plugins geared towards front-end manipulation yet when access pages in backend (ie. /wp-admin/edit.php) all css, js , plugin files beingness loaded plugins not required there, increasing load-time , responsiveness of admin area.

i'm looking solution, either plugin based code can selectively load admin plugins, ideally without having hack core files.

i'm using wordpress 3.5.1.

checkout plugin organizer. haven't used according it's description, can "selectively disable plugins post type or wordpress managed url". guess disable plugins running on urls contain /wp-admin/.

you can modify plugins themselves. depends how written, can find enqueuing css , js files , wrap in is_admin() statement this:

// create sure aren't in admin area if ( !is_admin() ) { wp_enqueue_script('plugin-script'); wp_enqueue_style('plugin-style'); }

that ensure scripts/styles loaded on front end end.

another possibility find of css , script files beingness loaded via plugins , deregister them in functions.php file. require poke around plugins bit find handles of files, should work well. deregister of default stuff enqueued in admin area, can see mean.

add_action( 'admin_init', 'remove_admin_styles' ); function remove_admin_styles() { wp_deregister_style( 'wp-admin', 'ie', 'colors', 'colors-fresh', 'colors-classic', 'media', 'install', 'thickbox' ); }

as said, don't want mess core files, if absolutely need can implement solution described in this article. i'm sure know, it's not thought alter wordpress core files unless absolutely have to. maintain in mind changes wiped out if upgrade wordpress in future.

performance wordpress plugins admin

Comments

Popular posts from this blog

web services - java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.proxy.Enhancer -

Accessing MATLAB's unicode strings from C -

javascript - mongodb won't find my schema method in nested container -