pods_update_run

The Pods - Custom Content Types and Fields pods update run hook.

Description

apply_filters( 'pods_update_run', (null) $null, $pods_version, (unknown) $old_version ); 

Parameters (3)

0. $null (null)
The null.
1. $pods_version
The pods version.
2. $old_version (unknown)
The old version.

Usage

To run the hook, copy the example below.
  1. $null = apply_filters( 'pods_update_run', $null, $pods_version, $old_version ); 
  2.  
  3. if ( !empty( $null ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the pods_update_run callback 
  2. function filter_pods_update_run( $null, $pods_version, $old_version ) { 
  3. // make filter magic happen here... 
  4. return $null
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'pods_update_run', 'filter_pods_update_run', 10, 3 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'pods_update_run', 'filter_pods_update_run', 10, 3 ); 

Defined (2)

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

/sql/upgrade/PodsUpgrade_2_0_0.php  
  1. if ( false !== apply_filters( 'pods_update_run', null, PODS_VERSION, $old_version ) ) 
/classes/PodsInit.php  
  1. if ( false !== apply_filters( 'pods_update_run', null, PODS_VERSION, $pods_version, $_blog_id ) && !isset( $_GET[ 'pods_bypass_update' ] ) ) {