Skip to content

Commit

Permalink
doc: add action hook comment
Browse files Browse the repository at this point in the history
  • Loading branch information
ravinderk committed Mar 7, 2023
1 parent e401d98 commit 6bede2b
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,14 @@ public function push( $post, $args = array() ) {
delete_transient( 'dt_media_errors_' . $new_post_id );
}

/** This filter is documented in includes/classes/InternalConnections/NetworkSiteConnection.php */
/**
* Fires after a post is pushed via Distributor before `restore_current_blog()`.
*
* @param {int} $new_post_id The newly created post.
* @param {int} $post_id The original post.
* @param {array} $args The arguments passed into wp_insert_post.
* @param {Connection} $this The Distributor connection being pushed to.
*/
do_action_deprecated(
'dt_push_post',
array( $new_post_id, $post_id, $args, $this ),
Expand Down

0 comments on commit 6bede2b

Please sign in to comment.