WordPress filter hook · part of WordPress core
plugins_api
A WordPress core filter that 15 plugins also fire themselves, running on 1.2M+ sites between them.
How to use plugins_api
It's a filter: your callback receives the value and 2 more arguments, and must return the (changed) value.
Add this to your theme's functions.php or a small custom plugin:
add_filter( 'plugins_api', function( $value, $action, $args ) {
// Change $value here.
return $value;
}, 10, 3 );Argument names come from Migrate Guru's source. Other plugins may pass different values: check the call in the plugin you're targeting below.
This hook is fired by WordPress core too. Official reference on developer.wordpress.org →
15 plugins that fire plugins_api
Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.
-
MainWP Child700,000+ installs
apply_filters( 'plugins_api', false, 'plugin_information', array( 'slug' => $plugin ) )class/class-mainwp-child-updates.php:445 -
Migrate Guru200,000+ installs
apply_filters( 'plugins_api', false, $action, $args )callback/wings/info.php:528 -
MalCare WordPress Security Plugin100,000+ installs
apply_filters( 'plugins_api', false, $action, $args )callback/wings/info.php:569 -
BlogVault Backup & Staging80,000+ installs
apply_filters( 'plugins_api', false, $action, $args )callback/wings/info.php:569 -
Cloudways Site Manager50,000+ installs
apply_filters( 'plugins_api', false, $action, $args )callback/wings/info.php:529 -
The WP Remote WordPress Plugin30,000+ installs
apply_filters( 'plugins_api', false, $action, $args )callback/wings/info.php:569 -
DreamHost Automated Migration10,000+ installs
apply_filters( 'plugins_api', false, $action, $args )callback/wings/info.php:528 -
Cloudways WordPress Migrator10,000+ installs
apply_filters( 'plugins_api', false, $action, $args )callback/wings/info.php:528 -
Pressable Automated Migration5,000+ installs
apply_filters( 'plugins_api', false, $action, $args )callback/wings/info.php:528 -
Migrate to WordPress.com2,000+ installs
apply_filters( 'plugins_api', false, $action, $args )callback/wings/info.php:528 -
Migrate To Liquid Web & Nexcess1,000+ installs
apply_filters( 'plugins_api', false, $action, $args )callback/wings/info.php:528 -
Pantheon Migrations1,000+ installs
apply_filters( 'plugins_api', false, $action, $args )callback/wings/info.php:528 -
Selling Commander for WooCommerce50+ installs
do_action( 'plugins_api', $remote, 'plugin_information', (object)array("slug" => $plugin_idenifier) )sellingcommander.php:4090 -
Plugin Bundles10+ installs
apply_filters( 'plugins_api', false, $action, $args )includes/bundles_overview.php:108 -
Plugin Downloads DisplayFewer than 10 installs
apply_filters( 'plugins_api', false, $action, $args )plugin-download-display.php:42 -
Plugin PromoterFewer than 10 installs
apply_filters( 'plugins_api', false, $action, $args )plugin-promoter.php:23
Need a customisation built on this hook?
Tell us what you want to change and which plugin it's for. We'll write it, test it and send it back as a small plugin.