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:

functions.php
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.

  1. MainWP Child icon MainWP Child700,000+ installs apply_filters( 'mwp_premium_perform_update', array() ) class/class-mainwp-child-updates.php:333
  2. InfiniteWP Client icon InfiniteWP Client200,000+ installs apply_filters( 'mwp_premium_perform_update', $premium_update ) installer.class.php:758
  3. MalCare WordPress Security Plugin icon MalCare WordPress Security Plugin100,000+ installs apply_filters( 'mwp_premium_perform_update', array() ) callback/wings/manage.php:811
  4. BlogVault Backup & Staging icon BlogVault Backup & Staging80,000+ installs apply_filters( 'mwp_premium_perform_update', array() ) callback/wings/manage.php:811
  5. Cloudways Site Manager icon Cloudways Site Manager50,000+ installs apply_filters( 'mwp_premium_perform_update', array() ) callback/wings/manage.php:811
  6. The WP Remote WordPress Plugin icon The WP Remote WordPress Plugin30,000+ installs apply_filters( 'mwp_premium_perform_update', array() ) callback/wings/manage.php:811
  7. WPSupervisor Client icon WPSupervisor Client10+ installs apply_filters( 'mwp_premium_perform_update', $premium_update ) installer.class.php:509
  8. Shift8 Remote Management icon 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.