wp_import_insert_comment

The WordPress Importer wp import insert comment hook.

Description

do_action( 'wp_import_insert_comment', (unknown) $inserted_comments_key, (unknown) $comment, (unknown) $comment_post_id, (unknown) $post ); 

Parameters (4)

0. $inserted_comments_key (unknown)
The inserted comments key.
1. $comment (unknown)
The comment.
2. $comment_post_id (unknown)
The comment post id.
3. $post (unknown)
The post.

Usage

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

Defined (1)

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

/wordpress-importer.php  
  1. do_action( 'wp_import_insert_comment', $inserted_comments[$key], $comment, $comment_post_ID, $post );