PUM_Model_Popup::passive_migration()
Allows for passive migration routines based on the current data version.
Description Description
Source Source
File: classes/Model/Popup.php
public function passive_migration() { $this->doing_passive_migration = true; for ( $i = $this->data_version; $this->data_version < $this->model_version; $i ++ ) { do_action_ref_array( 'pum_popup_passive_migration_' . $this->data_version, array( &$this ) ); $this->data_version ++; /** * Update the popups data version. */ $this->update_meta( 'data_version', $this->data_version ); } do_action_ref_array( 'pum_popup_passive_migration', array( &$this, $this->data_version ) ); $this->doing_passive_migration = false; }
Expand full source code Collapse full source code View on Trac