is it “strange” that this hooks is called more than once?
No, not at all – this filter will fire anytime get_option( 'active_plugins' ) is called, which almost certainly happens multiple times per request.
Related Posts:
- How can I see all the actions attached to an “add_action” hook?
- How to include code only on specific pages?
- Schedule WordPress Auto-Updates to only run during business hours
- Remove action from plugin on other plugin
- Preventing a plugin from updating
- How To Determine If A Filter Is Called In A Sidebar/Widget Context?
- Is there any debug toolbar that shows whick hooks are called for the current page in WordPress?
- When can you get current page ID and initialize hooks right after?
- WordPress admin notice in plugin function
- Using the ‘draft_to_publish’ hook (post status transition)
- Filter Hook on plugin update
- WordPress Hook that will run when media file deleted
- Disallow a user to post in certain categories
- Intercepting a add_action
- Generic plugin (de)activation hook?
- Adding a form at the end of the content
- Use external link in the add sub menu
- Failed to invoke other hook from the init hook
- How can I add a custom meta value on file upload?
- How can I filter blog name?
- why does the add_action(‘the_content’) overwrite my page
- Fatal error: Class not found in
- Showing Notifications While Activating Plugin
- Is it possible to remove this action? (as it’s added just before it’s called)
- Woocommerce Shipping module available only for type of products [closed]
- WordPress Plugin Boilerplate – add_action hook in static “activate” function
- Put code into body tags near top, using a plugin
- Hook before & after plugin / core update
- publish_post plugin hook doesn’t always pass $post->post_content
- How to initialize something in unit test before the init hook being called?
- add action for displaying posts using a shortcode
- Randomize attachment IDs
- ‘wp_login’ action hook not working with wp-login.php file
- Pass info from functions.php to plugin
- Remove rewrite rules generated by plugin during deactivation
- Change permalink structure hidden button edit
- Where (or when) should I register a new taxonomy?
- WordPress filter that hook after each action/filter hook
- When to use action hooks and plugins
- Hook (or other way) to find out when another plugin is activated / installed
- Inserting above the comment template
- Insert new user with form submit ‘init’ hook
- How to stop activating a plugin and show admin notice when dependent plugins minimum version is not met
- get current date + 90 days and checking every day
- Calculate price and display on woocommerce product single page under price (simple price, variable price) [closed]
- Are functions in main plugin file called before function bound to register_activation_hook runs?
- password_reset hook is not working
- Why do plugins often ask to add in to templates?
- remove_action not removing add_action from constructor
- How to get menu location in wp_update_nav_menu hook
- Flipping Book PHP Code? Any experience?
- Turning on output buffering in a wordpress plugin
- Display Plugin Panels Outside of Admin Areas
- Save user total active time after login in wordpress [closed]
- Advanced WordPress plugin activation detection
- wp_loaded with static Singleton
- wp_trash_post hook – problem with page updating if using wp_die
- How to return the values from a row where a value occurs for the first time among the rows available?
- Add action to custom Function
- How to hook into action/filter call
- How to automatically activate users after registration without activation email?
- Hooks to run after a core upgrade?
- Plugin Hook When New Author Added
- Adding custom Field To The Posts Listing
- Add hook after content without formatting
- Using Remove Action Hook in Plugin
- Fail on admin_enqueue_scripts when I try it to upload a CSS file to my WordPress Plugin
- admin_post hook not firing function inside class
- Alternative Hook to the_content for Changing Background Color
- Unpublished Pages Failing To Appear On Custom Path
- Hooking into the HTML header container
- Hide WordPress Site URL from Source Code
- Plugin function in child theme
- Edit plugin’s HTML output with Hooks
- Display Woocommerce attribute name above product title
- {status}_{post_type} does not run correctly?
- WordPress Boilerplate Plugin doesn’t see callback functions for add_settings_field and add_settings_section
- What is the correct entry point for capturing coverage data
- Identify if the_post hook is being called from the admin post list
- Why can’t I shove an instance of a class into a variable from a do_action hook?
- Add a filter to a method in the parent theme
- Publish check if the edited content has HTML “div”
- Passing a parameter to filter and action functions
- Run only on plug-in activation instead of wp_head
- WordPress hook source
- How to `remove_action` from plugin
- Display_rows() and column_cb() strange behaviour
- Transition Post status not working
- functions.php conditional output for a single plugin
- OOP Plugin: Where should I place the action hooks in the class?
- add query string to all pages after user logged in
- How wordpress plugin hooks works? [duplicate]
- Post curl function save twice using plugin hook function wordpress
- Order shipped by which driver[hook for woocoomerce order staus changed and popup in admin panel ] [closed]
- Hook automatic_updates_complete to autoupdate plugin
- Can’t use updated variables in handle function
- Neither update_option nor delete_option fires in deactivation hook
- WordPress : how to create onglet and remove it when only one
- I have to select text from gutenberg editor. Purpose is to store and replace text
- Which approach for managing automatic updates would be more robust?