wpseo_run_upgrade

Filter: 'wpseo_run_upgrade' - Runs the upgrade hook which are dependent on Yoast SEO.

Description

do_action( 'wpseo_run_upgrade', (unknown) $this_options_version ); 

Parameters (1)

0. $this_options_version (unknown)
The this options version.

Usage

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

Defined (1)

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

/inc/class-upgrade.php  
  1. do_action( 'wpseo_run_upgrade', $this->options['version'] );