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_Popups::process_popup( int $popup_id )
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
- $popup_id
-
(Required)
Source Source
File: includes/batch/upgrade/class-upgrade-v1_7-popups.php
public function process_popup( $popup_id = 0 ) { $popup = pum_get_popup( $popup_id ); /** * If the popup is already updated, return early. */ if ( $popup->data_version < 3 ) { /** * Processes the popups data through a migration routine. * * $popup is passed by reference. */ pum_popup_migration_2( $popup ); /** * Update the popups data version. */ $popup->update_meta( 'data_version', 3 ); } }
Expand full source code Collapse full source code View on Trac