I believe you are looking for activated_plugin
and deactivated_plugin
, see the wordpress documentation:
Related Posts:
- WooCommerce: after install hook
- How can I edit post data before it is saved?
- Registering Class methods as hook callbacks
- How to customize woocommerce related products? [closed]
- Why does wp_enqueue_style() in plugin not load stylesheet?
- Customizing subject in comment notification e-mails
- Edit plugin without hooks in functions.php
- How can I log a user out of WordPress before the page loads?
- WP showing “warning: call_user_func_array()”, What to do?
- Modify featured image URL at runtime
- Seeking clarification on page request life-cycle
- Pass A Value From Outside To A Plugin Variable
- Built in admin ajax hooks?
- Install plugin remotely
- How to filter content post only on save
- Filter or action hook to insert content on admin pages before tag
- How to find out what blocks are added by a plugin
- merging an array to an existing array using add_filter
- Distributing and packaging plugins
- what the hook for displaying course list page for learndash plugin? [closed]
- How to add rewrite rules and pagination to retrieve attachments files?
- Plugin custom Action Hook not working
- What are the benefit in adding hook in the init() hook?
- What are ideal hooks to call register_sidebars?
- AddFilter option_active_plugins is executed 6 times. Why?
- What causes an Unexpected HTTP Error within install plugins?
- Deactivate Plugin on Theme Switch
- Where to hook my plugin’s action
- CMB2 installation – cannot get it to work
- How to pull code snippet from functionality plugin?
- How do action and filter hooks understand where to look for the core function that we hooked our function to them
- Is there an earlier hook than login_head or login_enqueue_scripts?
- Pushing out updates to multiple installs?
- Gravity Forms plugin: How to use “gform_editor_js” action hook? [closed]
- Using a post-signup hook to get user details
- woocommerce_package_rates not fired when wordpress woocommerce accessed as non ajax
- Trigger Elementor Popup via code [closed]
- Calling plugin function inside custom plugin for onclick event
- Installing a plugin on a premium site [closed]
- Filtering WooCommerce Orders by Category
- Create a multisite network for an existing installation
- Theme/Plugin installation through url on button click
- do_action() hook into load-(page)
- Howto check version of another plugin and then add a submenu page to it
- Deactivate JS Script in Plugin Shortcode
- Turning on output buffering in a wordpress plugin
- Are there action hooks for comments?
- How to use template_include hook with form submission?
- Adding Plugin Assets to Header
- wp_trash_post hook – problem with page updating if using wp_die
- Function added to hook “new_to_publish” not executing – custom plugin
- Programmatically install and activate child-theme
- is it possible to hook every page style?
- Comment Approve – Add custom function when comment is approved
- Installing plug ins on a wordpress hosted site
- Add action to custom Function
- Hook on creating a menu entry?
- Prevent plug-in scripts on a specific template?
- using wp_footer hook in a plugin
- Plugin Hook When New Author Added
- WordPress Custom Hook with Class method
- Fail on admin_enqueue_scripts when I try it to upload a CSS file to my WordPress Plugin
- How to remove a hook written with $this?
- Is there a hook similar to “save_post” which only fires AFTER the post is completely published?
- update_option_{$option} not working (do function after options are saved)
- Alternative Hook to the_content for Changing Background Color
- Unpublished Pages Failing To Appear On Custom Path
- add a hook of Woocommerce to a plugin but it only shows and doesn’t function properly
- ACF Fields are not showing up on Homepage
- Hooking into the HTML header container
- Hide WordPress Site URL from Source Code
- When/where would want to attach other classes to the base class in a WordPress plugin?
- Plugin function in child theme
- Edit plugin’s HTML output with Hooks
- Use action, filter, or hook to append HTML to WordPress plugin function
- Hook to display element as product on category page
- Is it possible to disable a theme programmatically?
- {status}_{post_type} does not run correctly?
- Identify if the_post hook is being called from the admin post list
- plugin not hooking to my custom hook
- Why can’t I shove an instance of a class into a variable from a do_action hook?
- database – multiple wordpress installations using same database – can they share plugin settings?
- How to install jquery dotdotdot plugin for WordPress?
- Creating Custom Hook for my plugin
- Passing a parameter to filter and action functions
- WordPress hook source
- Modify a plugin’s content
- Manually return false for function_exists
- How to `remove_action` from plugin
- Plugin Hook: Get posts
- Transition Post status not working
- functions.php conditional output for a single plugin
- What possible reasons can cause my plugin not to be listed in the plugin search in the back-end of wordpress installs?
- How to make plugin work in each template in wordpress
- No feedback when installing plugins or updating
- OOP Plugin: Where should I place the action hooks in the class?
- Why do I get this “peer’s certificate issuer not recognised” error when trying to install a theme?
- WordPress – connection information
- Can’t use updated variables in handle function
- is_user_logged_in() undefined at shutdown in plugin context