pre_aiosp_seometa_post_meta_convert

Convert old to new postmeta.

Description

do_action( 'pre_aiosp_seometa_post_meta_convert', (string) $old_platform, (string) $new_platform, (bool) $delete_old ); 

Cycle through all compatible SEO entries of two platforms and aiosp_seometa_meta_key_convert conversion for each key.

Parameters (3)

0. $old_platform (string)
The old platform.
1. $new_platform (string)
The new platform.
2. $delete_old (bool)
The delete old.

Usage

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

Defined (1)

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

/admin/meta_import.php  
  1. do_action( 'pre_aiosp_seometa_post_meta_convert', $old_platform, $new_platform, $delete_old );