How to restrict a plugin from certain pages without editing its core

I would approach as follows: Identify all the action/filter hooks in the plugin Identify all scripts/styles being enqueued. Create a function that removes the actions/filters based on the page using remove_action, remove_filter, wp_deregister_style, wp_deregister_script You could use something like the following: function foo_disable_plugin(){ if(is_page(‘PAGE_TITLE OR ID’)){ remove_filter(‘the_content’, ‘PLUGIN_FILTER_NAME’); remove_action(‘wp_head’, ‘PLUGIN_ACTION_NAME’); wp_deregister_script(‘PLUGIN_SCRIPT_NAME’); } } add_action(‘template_redirect’, ‘foo_disable_plugin’, … Read more

Custom content before post content

You can check the post type of the current post via get_post_type: function theme_slug_filter_the_content( $content ) { if( ‘post’ == get_post_type() ){ $custom_content=”YOUR CONTENT GOES HERE”; return $custom_content . $content; } return $content; } add_filter( ‘the_content’, ‘theme_slug_filter_the_content’ );

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)