WordPress filter hook
mwp_premium_perform_update
Fired by 8 WordPress plugins, running on 1.2M+ sites between them.
How to use mwp_premium_perform_update
It's a filter: your callback receives the value, and must return the (changed) value.
Add this to your theme's functions.php or a small custom plugin:
add_filter( 'mwp_premium_perform_update', function( $premium_update ) {
// Change $premium_update here.
return $premium_update;
}, 10, 1 );Argument names come from InfiniteWP Client's source. Other plugins may pass different values: check the call in the plugin you're targeting below.
8 plugins that fire mwp_premium_perform_update
Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.
-
MainWP Child700,000+ installs
apply_filters( 'mwp_premium_perform_update', array() )class/class-mainwp-child-updates.php:333 -
InfiniteWP Client200,000+ installs
apply_filters( 'mwp_premium_perform_update', $premium_update )installer.class.php:758 -
MalCare WordPress Security Plugin100,000+ installs
apply_filters( 'mwp_premium_perform_update', array() )callback/wings/manage.php:811 -
BlogVault Backup & Staging80,000+ installs
apply_filters( 'mwp_premium_perform_update', array() )callback/wings/manage.php:811 -
Cloudways Site Manager50,000+ installs
apply_filters( 'mwp_premium_perform_update', array() )callback/wings/manage.php:811 -
The WP Remote WordPress Plugin30,000+ installs
apply_filters( 'mwp_premium_perform_update', array() )callback/wings/manage.php:811 -
WPSupervisor Client10+ installs
apply_filters( 'mwp_premium_perform_update', $premium_update )installer.class.php:509 -
Shift8 Remote Management10+ installs
apply_filters( 'mwp_premium_perform_update', array() )components/plugins.php:121
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.