Warning: Array to string conversion in /mnt/data/home/502433.cloudwaysapps.com/rhbymdevka/public_html/wp-content/themes/wporg-developer/inc/template-tags.php on line 808

Warning: foreach() argument must be of type array|object, string given in /mnt/data/home/502433.cloudwaysapps.com/rhbymdevka/public_html/wp-content/themes/wporg-developer/inc/template-tags.php on line 813
PUM_Upgrade_v1_7_Settings::process_settings( array $settings = array() )

Process needed upgrades on each popup.


Description Description


Warning: Array to string conversion in /mnt/data/home/502433.cloudwaysapps.com/rhbymdevka/public_html/wp-content/themes/wporg-developer/inc/template-tags.php on line 808

Warning: foreach() argument must be of type array|object, string given in /mnt/data/home/502433.cloudwaysapps.com/rhbymdevka/public_html/wp-content/themes/wporg-developer/inc/template-tags.php on line 813

Parameters Parameters

$settings

(Optional) Current global popup maker settings.

Default value: array()


Top ↑

Source Source

File: includes/batch/upgrade/class-upgrade-v1_7-settings.php

	public function process_settings( $settings = array() ) {
		$changed     = false;

		// popmake_settings['newsletter_default_provider'] == '' should be changed to 'none'
		if ( isset( $settings['newsletter_default_provider'] ) && $settings['newsletter_default_provider'] == '' ) {
			$settings['newsletter_default_provider'] = 'none';
			$changed = true;
		}

		/**
		 * Save only if something changed.
		 */
		if ( $changed ) {
			PUM_Utils_Options::update_all( $settings );
		}
	}


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.