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
- Sync User to cPanel webmail?
- How to get post ID with hooks publish_post, new_to_publish, etc
- edit_user_profile and show_user_profile are not firing inside a class
- Template filter for custom taxonomy terms
- How to pass variables to a function argument using add_action [duplicate]
- Add sub menu page in your plugin
- how to change automatic placing of social plugins below content?
- Is it possible to send blog posts via email to subscribers?
- Implementing an “Email this” button?
- What exactly happens to function argument availability when using a filter?
- Send admin an email when a user’s search has no results
- Combining several CSS files into one for optimization
- the_post hook is not firing for me
- Why do plugins often ask to add in to templates?
- Deactivate JS Script in Plugin Shortcode
- Create a post builder skin in a plugin
- remove_action not removing add_action from constructor
- Plugin Development – Functions or Hooks?
- How to get menu location in wp_update_nav_menu hook
- How do I add some javascript validation to the admin interface form’s onsubmit?
- Can my hooked uninstall class function access a global var declared in main plugin file?
- Flipping Book PHP Code? Any experience?
- Looking for advice for a mail sending plugin
- How to check if an email was sent from or originated from a specific plugin?
- Turning on output buffering in a wordpress plugin
- Plugin to email a post or page to someone
- Hook for page Request?
- Display Plugin Panels Outside of Admin Areas
- Are there action hooks for comments?
- Collecting email addresses via a “beta” sign up form
- How to remove js ui library added by default by wordpress
- How to use template_include hook with form submission?
- Adding Plugin Assets to Header
- Add item to the woocommerce dashboard menu from a plugin
- How to use the pre_option filter before a plugin loads?
- SMTP Error: Could not authenticate [closed]
- What are admin hooks
- How do I add $_SESSION[”] to my wordpress page?
- Alternate email sending service – eg: AWS SES [closed]
- WooCommerce: after install hook
- How to use filter to disable adding a product to wishlist?
- Save user total active time after login in wordpress [closed]
- Send email with list of active plugins upon activation/deactivation
- How to remove a class function from a plugin by using remove_action()?
- Sending HTML email containing custom fields to site users from WordPress
- Getting 400 Error: redirect_uri_mismatch when trying to grant permission to Gmail SMTP plugin
- Advanced WordPress plugin activation detection
- profile_update hook doesn’t works inside a class
- wp_loaded with static Singleton
- wp_trash_post hook – problem with page updating if using wp_die
- sending different email notification while registration based on user role
- How to return the values from a row where a value occurs for the first time among the rows available?
- is it possible to hook every page style?
- Comment Approve – Add custom function when comment is approved
- Plugin: Hooking up classes that have their own hooks
- Add action to custom Function
- Hook for altering the content of all wp mails
- Hook on creating a menu entry?
- What hook can I use to modify custom post data before it is displayed on the page?
- Two WooCommerce installations on the same server, one sends customer emails but the other does not
- How to hook into action/filter call
- Quick press publish post hook
- Prevent plug-in scripts on a specific template?
- using wp_footer hook in a plugin
- How to add a button to check the emails of my domain?
- Contact Form 7 Plugin emails not being received by some accounts
- Plugin to send messages to members/lists but not full-blown newsletters
- In wordpress how to sent different email separetly when i click on different email ids [closed]
- Mass Mail Plugin to Email Specified User Roles [closed]
- How to deactivate my plugin upon deactivation of NextGen
- How can I add user profile fields to my mailpress mailout
- plugin for emails to prevent spam but also let mailto working?
- How to automatically activate users after registration without activation email?
- Creating a plugin that will display text on every page
- Hooks to run after a core upgrade?
- Can Postie be used to submit podcasts via email?
- Plugin Hook When New Author Added
- Adding custom Field To The Posts Listing
- Hook for plugin to insert into entry-meta
- Why does “updated_post_meta” did not fire when uploading media other than image?
- Build a must-use plugin that tracks when other plugins are activated or deactivated
- Change Dashboard URL from wp-admin to wp-admin/index.php
- Activation flow of a plugin in a multisite environment
- Use a hook or filter, or overwrite this Gamipress function?
- Hook from plugin doesn’t fire up from external PHP script
- Add hook after content without formatting
- WordPress – send digital product with custom email
- How to display emails as a post?
- Using Remove Action Hook in Plugin
- 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
- admin_post hook not firing function inside class
- 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