Title: Plugins_api Bug
Last modified: August 21, 2016

---

# Plugins_api Bug

 *  [gmariani405](https://wordpress.org/support/users/gmariani405/)
 * (@gmariani405)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/plugins_api-bug/)
 * Hello,
 * I have custom plugins installed that leverage the plugins_api filter. Your plugin
   breaks them by only returning false instead of the object passed. The code can
   be found in the sendpress/classes/class-sendpress-pro-manager.php.
 * Below is the function in question:
    function plugins_api( $res, $action, $args){
   if( $action === ‘plugin_information’ && isset($args->slug) &&$args->slug === ‘
   sendpress-pro’ ){ return $args; } return false; }
 * If the plugin slug don’t match, instead of return $res, you return false, thus
   overwriting the $res that may have been modified by the plugin called previously.
   If you could fix this bug I’d appreciate it. Thanks.
 * [https://wordpress.org/plugins/sendpress/](https://wordpress.org/plugins/sendpress/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Josh Lyford](https://wordpress.org/support/users/joshl/)
 * (@joshl)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/plugins_api-bug/#post-4755176)
 * Hi,
 * This will be fixed for the next release.
 * Best,
    Josh

Viewing 1 replies (of 1 total)

The topic ‘Plugins_api Bug’ is closed to new replies.

 * ![](https://ps.w.org/sendpress/assets/icon.svg?rev=979185)
 * [SendPress Newsletters](https://wordpress.org/plugins/sendpress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/sendpress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/sendpress/)
 * [Active Topics](https://wordpress.org/support/plugin/sendpress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/sendpress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/sendpress/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Josh Lyford](https://wordpress.org/support/users/joshl/)
 * Last activity: [12 years, 2 months ago](https://wordpress.org/support/topic/plugins_api-bug/#post-4755176)
 * Status: not resolved