function to disable plugin in custom page
-
For example i have a page on my wordpress called anything.php which has “anything.php?id=<?php echo $post->ID; ?>” and need a function that disables a plugin on that page, only in this page, you can create a function like this for that …
function remove_plugin_name() { if (!is_page('anything.php?id=<?php echo $post->ID; ?>')){ remove_action('remove_plugin_name';} }
If so, how and where should I apply it …?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘function to disable plugin in custom page’ is closed to new replies.