Not sure if I phrased it correctly, but basically I wanted to download the CSS / JS plugin only on pages that use actual plugins. I got a lot of things thanks to searching through plugin files for any descriptors used in wp_enqueue_script inside plugins and just wp_dequeue_script them in functions.php
However, there are some style enqueues that include a .php and not a css file, for example .. in the plugin it inserts a file
wp_enqueue_style("myrp-stuff", MYRP_PLUGIN_URL . "/myrp-hotlink-css.php");
so i tried:
wp_dequeue_style('myrp-stuff'); wp_deregister_style('myrp-stuff');
Does not work
However, when the page / message is displayed, it is displayed as
<link rel='stylesheet' id='myrp-stuff-css' href='http://www.modernlogic.co/wp/wp-content/plugins/MyRP/myrp-hotlink-css.php?ver=3.4.2' type='text/css' media='all' />
He adds -css to id and refuses to unregister / unregister and move.
I also tried the following with no luck
wp_dequeue_style('myrp-stuff-css'); wp_deregister_style('myrp-stuff-css');
Any suggestions?
Ci_guy
source share