I solved my issue, so for those people who want to achieve the same thing about forcing updates using EDD, here’s the solution (or at least worked for me):
First of all, when you update a plugin via the plugins page, it does via AJAX, so I had to read the /wp-admin/includes/ajax-actions.php
file, and inside of the wp_ajax_update_plugin()
function found that was executing wp_update_plugins()
function, so I realized that was overwriting the update_plugins
site transient.
At this point, I thought my filters were executing but no, the thing is I was executing those filters inside of the current_screen
action, and when the wp_update_plugins()
function was called from wp_ajax_update_plugin()
, it wasn’t listen to them.
So I had to create new filters and execute them when my class is invoked.
And that’s it, problem solved. Hope you can find this useful.
Related Posts:
- Updates for a private plugin?
- Disable update notification for individual plugins
- How can I stop WordPress from prompting me to enter FTP information when doing updates?
- How to create custom message on plugin update
- Update plugin from personal API
- How to create a WordPress plugin for another wordpress plugin?
- Managing WP Core & Plugin Updates for Clients
- Preventing a plugin from updating
- Get Latest Plugin Version from WP API
- How wordpress detects a plugin update
- A Way to Auto update plugins using cron?
- Overwrite textdomain of plugins by default – Lost Translation
- Updating WordPress – the best approach (updating wp core, plugins and db)
- Remove update messages for deactivated plugins
- WordPress error – PHP Fatal error: Uncaught Error: Call to undefined function register_block_type_from_metadata()
- How can a plugin run a script after being updated in MultiSite?
- How to update plugin without overwrite custom code
- Hook (upgrader_process_complete) running moment
- WordPress plugin search does not work and updates are not shown, VPS install
- How do I prevent Plugin updates from clobbering user edits?
- Under which circumstances is the .maintenance file not deleted?
- pre_set_site_transient_update_plugins wont call on hosted webspace
- Why users disable the WordPress update?
- Plugin child folder?
- Plugins won’t update when WordPress says they’re updated
- How to check if WordPress is updating plugins?
- All Updated Plugins Disappeared
- Skip file when plugin updated
- Could not create directory
- How to migrate from Mark Jaquith’s Subscribe to Comments plugin to Gurken’s new version?
- Can I check plugins and themes for PHP 5.6 ahead of global PHP server Update
- Can I upgrade plugins via FTP?
- How to create a plugin that notifies for updates?
- Are there hooks for WordPress updates?
- How to make my plugin able to be updated from admin panel?
- Theme and plugin install or update display error in localhost
- What is the correct way to update both WP/plugins/themes without breaking the site?
- Pushing out updates to multiple installs?
- custom changes removed after plugin update
- Plugin updates from a specific location
- Two problems on my WordPress installation [closed]
- get 404 when accessing wp-admin/plugin-install.php
- Updating plugins asks for FTP information, why? (this is a new one)
- Programatically update non-wordpress repository hosted (self-hosted) plugins
- Procedural Question on Plugin Installation
- Call specific plugin update
- Malware installation during plugin update?
- WordPress plugin updates / set file as immutable to prevent certain files from changing?
- WordPress update and plugin install not working
- How do I disable an update for a specific plugin?
- Plugins fail to update: Download failed. A valid URL was not provided
- How do I get the user ID of the user that was updated in WordPress?
- How to update mu-plugin
- UpdraftPlus installed malware – scared to download or update plugins now! [closed]
- Child Themes and Updating Parent Theme
- Vulnerability Concern From the Plugin or From Not Updating the Plugin?
- Get site url and updates data, then use them
- Why does this code snippet create a critical error on my site? [closed]
- getting notifications about updates only in the “core” page
- How do I change where a plugin pulls updates from?
- Plugin upgrade failing during unzip
- Cannot add edit themes and add plugins after multisite update
- Remove updates text on plugin or themes list page
- After a manual update, themes and plugins that were installed (and still in the directory) are not being seen
- What would make the plugin update process to complete but don’t report as such?
- WordPress plugins – “Update” in backend vs replacing all files with never version
- How can I disable new plugin and theme install, but allow updates?
- How to prepare (compress/zip) a plugin to enable updating instead of adding new instance?
- WordPress asks to update a plugin already updated
- Bash script to check available updates
- WordPress fresh installation did not update default plugin and themes to latest version
- Custom Plugin Update
- How use get_plugin_updates() function?
- Block plugin update possibilities (but not by hiding notifications)
- Update a previous version of plugin when the new plugin is built from the scratch
- Updates Hidden on Dashboard
- WP core and plugin updates fail AWS
- Error after installing the WordPress plugin updates
- Website content not displayed anymore after updates
- Custom plugin which downloads updates from custom endpoint, extracts new version zip into a new name
- Unmatch plugin from updates?
- Plugin doesn’t update it’s version and code on WordPress.org
- Trouble cloning a live WordPress site to a new site on a local server?
- WordPress update plugin through Dashboard/Plugins displaying error
- Surviving WordPress and plugin updates
- How to keep edited plugins updated?
- MobilePress plugin and WordPress 4.1 update
- How to speed up installing plugins and upgrading WordPress
- Automatic updates of plugins and themes outside of wordpress.org
- No feedback when installing plugins or updating
- No plugin updates after moving wp-config.php above root map
- How to include a custom thumbnail with my WordPress plugin?
- Plugin update warning
- How to Replicate Elementor Licensing Model
- how to update wordpress plugin programmatically using plugin path
- Manually update notification of plugins needing updating
- On WordPress.org Plugin repository, Last Updated Date doesn’t match with Plugin Version Update Date
- How can i store cache of wordpress a database request without plugins?
- How can I wordpress cache a database request with no existing plugin?
- What’s the best way to update my WordPress theme to Elementor?