import_post_meta

The WordPress Importer import post meta hook.

Description

do_action( 'import_post_meta', (unknown) $post_id, (unknown) $key, (unknown) $value ); 

Parameters (3)

0. $post_id (unknown)
The post id.
1. $key (unknown)
The key.
2. $value (unknown)
The value.

Usage

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

Defined (1)

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

/wordpress-importer.php  
  1. do_action( 'import_post_meta', $post_id, $key, $value );