If you look at the plugin’s source, its main bits are hooked as following:
add_action('wp_enqueue_scripts', 'init_wpstartbar_files');
add_action('admin_print_scripts', 'init_wpstartbar_admin');
add_action('wp_footer', 'wpstartbar_footer',1);
The easiest way to conditionally disable it would probably be along (not tested):
add_action( 'template_redirect', function() {
if( ! is_front_page() ) {
remove_action('wp_enqueue_scripts', 'init_wpstartbar_files');
remove_action('admin_print_scripts', 'init_wpstartbar_admin');
remove_action('wp_footer', 'wpstartbar_footer',1);
}
} );
Related Posts:
- is_plugin_active function doesn’t exist
- Get plugin directory from a theme
- How to call a plugin function from index.php
- Rewriting every url
- How can I make my custom shortcode work in a Custom HTML Widget?
- How Does WordPress Uninclude/Deactivate A Plugin?
- Custom admin column disappearing when using Quick Edit [duplicate]
- Create page when plugin is activated
- How to un-attach rich text editor from named textarea elements
- How can I translate the name of my Plugin for other languages?
- how to not show plugin in admin area
- Memory Leak in plugin action
- Getting User email on logout. wp_logout
- Ajax call doesn’t work in frontend but it’s working in backend (when I’m logged in)
- How can I add a custom meta value on file upload?
- How can I filter blog name?
- Logs to check when the plugin was first installed for the first time
- Can a plugin add to header/footer/body content?
- Add a Custom Permalink option in the Permalink Admin Screen?
- How Can A Plugin Hook Itself To the End of Every Excerpt?
- Allow Facebook to preview posts before published
- publish_post plugin hook doesn’t always pass $post->post_content
- Let user subscribe to specific categories
- add action for displaying posts using a shortcode
- Best way to hook a custom url?
- How to cancel WordPress’ action/filter when using OOP with anonymous callback
- What is the best way to mimic a search query within a plugin
- How do I add a custom sub menu menu under Woo-commerce marketing?
- How to load plugin after page is loaded – pagespeed issues
- Programatically download a plugin
- Do action only on certain front end pages?
- Archive – same title for the first two posts
- Creating plugin using simple_html_dom parser?
- Making a Template for a CPT created by a plugin
- Woocommerce dependent plugin
- External CSS in WordPress Plugin [closed]
- User Session and Stored Cookies not get removed
- Create a navbar filter that filters by a custom field
- get 404 when accessing wp-admin/plugin-install.php
- wp.media javascript issue with on select
- Woocommerce Minimum Price for a Composite Product to add in cart
- add tabs in rdp-plugin/includes/settings.php and get settings saved
- Creating shortcodes in plugin
- Inject HTML meta tag inside wordpress tag using add_shortcode
- Proper way to replace the_content only for pages created by custom plugin
- Certain functions are undefined when called form mu-plugins
- Why is the ‘Gutenberg’ Plugin generating an ‘Inconsistent File Permissions’ error when other Plugins, with the same permissions, do not?
- Can plugin2 uninstall plugin1 at the very beginning of plugin2’s installation?
- How to redirect to same page after form submission
- plugin dev – minimum base css specificity?
- I changed font of wordpress dashboard but it is slow!
- Get Every Key & Value from Array then Display All in New Line
- Creating a functionality plugin to edit seriously simple podcasting
- Plugin temporary files and files to download via FTP
- DB Query not working in Plugin
- Make plugin php file called directly aware of WordPress?
- sending different email notification while registration based on user role
- How to add credit card validation check to wordpress [closed]
- Next Previous Post in wordpress with previous / next link with title?
- How to use existing hook in twentytwelve to all theme of wordpress?
- How to get a notification when the plugin is installed?
- Apply html elements in php statement
- WordPress Post HTML after Posting
- How to append new form elements in “Add New” form of Users in WordPress admin panel?
- Settings options not showing up on Sub Menu page in WordPress plugin
- How to Get Category Name When Export Products
- Remove List Bullets
- Custom Meta box change size
- Could add_query_arg() redirect user to external site?
- How to set plugin auto-update Enabled by default?
- Custom plugin activation error
- The Build menu theme is frozen with the wordpress theme
- How to capture hidden values with Gravity Forms
- How to translate to spanish wordpress hardcoded content/files?
- what functions to use to resize images and create DB metadata for them after/during upload?
- Multiple image selection custom widget
- How to Create a Learning Management Plugin in WordPress to Manage Courses [LMS]
- How to prevent redoing get_posts queries and make results available to other scripts?
- Paid Membership Pro displaying a user name in PHP
- Make another copy of a plugin and install it
- Store admin page into variable
- Custom plugin giving: wp-admin/admin-ajax.php 400 (Bad Request)
- WP Plugin CSS not being applied to page
- Overwriting Plugin’s Ajax callback function from theme
- How can I get the Post ID and Post Type within a Must Use Plugin?
- Creating Nested custom fields
- Unable to sync woocommerce variations
- Can’t find variable is_single in my jQuery plugin
- WordPress Cron function is not working
- Plugin hook breaks new WP 4.0 media library grid view?
- How to get site homepage from plugin?
- WP-Snap too slow (caused by WP_Query?)
- WordPress Meta Query: Relation is not working correctly
- Checking url from plugin [duplicate]
- What is the source outline for a basic word press plugin?
- Submit posts in two different post types with the same form
- How to create a custom wordpress plugin for a specific functionality?
- WP Elementor Pro causing crtical failure on website
- Redux Framework slides field – How Can i add new placeholder Filed? [closed]
- Remove H1 title in admin post edit screen