Issue with use of plugins_api filter
-
You have this line in the GMW class:
add_filter('plugins_api', array('GMW', 'update_details'), 100, 3);
And the first few lines of the GMW::update_details() method look like this:
static function update_details($false, $action, $args) { if (!GMW::is_activated()) { return false; }
This assumes that no other plugins would be using this filter but other plugins do use this filter. Could you update it to this?
static function update_details($return, $action, $args) { if (!GMW::is_activated()) { return $return; }
In this way, if your plugin does not need to do anything, it still returns whatever was passed to it unaffected. Happy to answer any questions. ??
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Issue with use of plugins_api filter’ is closed to new replies.