wp_loaded
hook is fired after init
hook.
So by the time you add your filter, the filter is already called by EDD.
You can either change your hook to init
and use a high priority or use an earlier hook like plugins_loaded
.
Related Posts:
- WordPress: Add custom add_filter for custom functions
- Function added to hook “new_to_publish” not executing – custom plugin
- 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?
- How to get current post ID in Contact Form 7 wpcf7_before_send_mail hook action
- Send email when a new post is published [closed]
- Edit plugin without hooks in functions.php
- How can I log a user out of WordPress before the page loads?
- Modify featured image URL at runtime
- Seeking clarification on page request life-cycle
- How to add usermeta to “Notice of Email Change” email message
- Notify commenters about new replies
- Pass A Value From Outside To A Plugin Variable
- Built in admin ajax hooks?
- Adding dynamic section to WordPress
- woocommerce product attributes
- How to find out what blocks are added by a plugin
- Storing a password for use with a WordPress plugin
- template_redirect not being called when using ajax
- How to add rewrite rules and pagination to retrieve attachments files?
- wp_mail attachment not working
- Plugin custom Action Hook not working
- What are ideal hooks to call register_sidebars?
- AddFilter option_active_plugins is executed 6 times. Why?
- Hook to generate a dynamic sitemap with “All in One SEO Pack” Plugin
- How to correctly detect accessing wp-content/uploads?
- Deactivate Plugin on Theme Switch
- How to pull code snippet from functionality plugin?
- Email Bounce Address
- 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]
- How to send an automated email to the customers when product is added woocommerce
- Filtering WooCommerce Orders by Category
- do_action() hook into load-(page)
- Howto check version of another plugin and then add a submenu page to it
- Notify comment author upon reply
- how to change automatic placing of social plugins below content?
- Implementing an “Email this” button?
- How to check if an email was sent from or originated from a specific plugin?
- Turning on output buffering in a wordpress plugin
- Are there action hooks for comments?
- Collecting email addresses via a “beta” sign up form
- How to use template_include hook with form submission?
- WooCommerce: after install hook
- Send email with list of active plugins upon activation/deactivation
- wp_trash_post hook – problem with page updating if using wp_die
- is it possible to hook every page style?
- Comment Approve – Add custom function when comment is approved
- Add action to custom Function
- Hook on creating a menu entry?
- Two WooCommerce installations on the same server, one sends customer emails but the other does not
- Prevent plug-in scripts on a specific template?
- using wp_footer hook in a plugin
- Plugin to send messages to members/lists but not full-blown newsletters
- Mass Mail Plugin to Email Specified User Roles [closed]
- Plugin Hook When New Author Added
- Use a hook or filter, or overwrite this Gamipress function?
- Hook from plugin doesn’t fire up from external PHP script
- WordPress Custom Hook with Class method
- How to create a form where you can select multiple recipients, based on a list of website users?
- Fail on admin_enqueue_scripts when I try it to upload a CSS file to my WordPress Plugin
- SMTP emails not picking up the correct From name and From email
- How to remove a hook written with $this?
- 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
- save_post hook partly firing in update post
- I want to schedule email (date, time is in database->table) wp_schedule_event() not working
- ACF Fields are not showing up on Homepage
- Hooking into the HTML header container
- Hide WordPress Site URL from Source Code
- Show post object of any page in frontend
- 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
- Send email when a user registers Rest api
- Use WordPress Site For Email List Functionality
- {status}_{post_type} does not run correctly?
- Identify if the_post hook is being called from the admin post list
- Form tries to download a file on submit
- Why can’t I shove an instance of a class into a variable from a do_action hook?
- Creating Custom Hook for my plugin
- Passing a parameter to filter and action functions
- WordPress hook source
- 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
- How to make plugin work in each template in wordpress
- OOP Plugin: Where should I place the action hooks in the class?
- Automatically send an email to list when blog is updated
- Send email notification when meet the condition
- Can’t use updated variables in handle function
- Neither update_option nor delete_option fires in deactivation hook
- WordPress isn’t sending welcome email with the password reset