ms_model_upgrade_before_update

----- General update logic, executed on every update ------------.

Description

do_action( 'ms_model_upgrade_before_update', (unknown) $settings, (unknown) $old_version, (unknown) $new_version, (unknown) $force ); 

Parameters (4)

0. $settings (unknown)
The settings.
1. $old_version (unknown)
The old version.
2. $new_version (unknown)
The new version.
3. $force (unknown)
The force.

Usage

To run the hook, copy the example below.
  1. // run the action 
  2. do_action( 'ms_model_upgrade_before_update', $settings, $old_version, $new_version, $force ); 
The following example is for adding a hook callback.
  1. // define the ms_model_upgrade_before_update callback 
  2. function action_ms_model_upgrade_before_update( $settings, $old_version, $new_version, $force ) { 
  3. // make action magic happen here... 
  4. }; 
  5.  
  6. // add the action 
  7. add_action( 'ms_model_upgrade_before_update', 'action_ms_model_upgrade_before_update', 10, 4 ); 
To remove a hook callback, use the example below.
  1. // remove the action 
  2. remove_action( 'ms_model_upgrade_before_update', 'action_ms_model_upgrade_before_update', 10, 4 ); 

Defined (1)

The action is defined in the following location(s).

/app/model/class-ms-model-upgrade.php  
  1. do_action(