For developers, the Multisite Membership Add On offers two filter hooks. Use them to choose which Paid Memberships Pro settings subsites read from the source site and which WP-Cron jobs the Add On clears on subsites.

Filters

pmpro_multisite_advanced_settings_options

Filters the list of option names a subsite reads from the source site when its Advanced Settings setting is Use main site settings. Each option in the list is read straight from the source site’s options table. Add an option name to make subsites use the source site’s value for it, or remove one to let each subsite keep its own.

The filter runs on plugins_loaded at priority 20, so add your code in a plugin, such as a customizations plugin, not in a theme. It does not run on subsites set to Use custom settings for this subsite.

apply_filters( 'pmpro_multisite_advanced_settings_options', array $option_names );

Parameters

  • $option_names: array; Option names to read from the source site. Defaults to pmpro_hide_toolbar, pmpro_block_dashboard, pmpro_filterqueries, pmpro_showexcerpts, pmpro_nonmembertext, pmpro_maxnotificationpriority, pmpro_activity_email_frequency, pmpro_business_address, pmpro_hideads, pmpro_wisdom_opt_out, pmpro_hideadslevels, pmpro_redirecttosubscription, pmpro_avatar_enabled_sitewide, pmpro_site_type, and the WordPress show_avatars option.

Example

function my_pmpro_multisite_advanced_settings_options( $option_names ) {
	// Let each subsite keep its own business address.
	$option_names = array_diff( $option_names, array( 'pmpro_business_address' ) );

	// Also read this option from the source site.
	$option_names[] = 'pmpro_hide_structured_data';

	return $option_names;
}
add_filter( 'pmpro_multisite_advanced_settings_options', 'my_pmpro_multisite_advanced_settings_options' );

pmpro_multisite_core_crons

Filters the list of Paid Memberships Pro WP-Cron jobs the Add On clears on a subsite. The Add On unschedules every job in this list on each page load on a subsite, including front-end and WP-Cron requests (version 0.6.4 and up; earlier versions only did this on admin page loads). Remove a job from the list to keep it scheduled on subsites.

Since Paid Memberships Pro 3.5, PMPro’s own recurring tasks run through Action Scheduler instead of WP-Cron, and the Add On stops them on subsites separately. This filter only affects WP-Cron jobs registered with PMPro’s pmpro_registered_crons filter, such as jobs added by other plugins or custom code. With no such jobs registered, the list is empty.

apply_filters( 'pmpro_multisite_core_crons', array $crons );

Parameters

  • $crons: array; The PMPro crons from pmpro_get_crons(), keyed by cron hook name. Each value is an array with timestamp, interval, and args keys.

Example

function my_pmpro_multisite_core_crons( $crons ) {
	// Keep this custom cron job running on subsites.
	unset( $crons['my_subsite_cleanup_cron'] );

	return $crons;
}
add_filter( 'pmpro_multisite_core_crons', 'my_pmpro_multisite_core_crons' );

Last updated on December 3, 2026


Was this article helpful?
YesNo