import_term_meta

Fires after term meta is imported.

Description

do_action( 'import_term_meta', (int) $term_id, (string) $key, (mixed) $value ); 

Parameters (3)

0. $term_id (int)
ID of the newly created term.
1. $key (string)
Meta key.
2. $value (mixed)
Meta value.

Usage

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

Defined (1)

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

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