Action: dt_push_external_post

do_action( 'dt_push_external_post', $response, $post_body, $type_url, $post_id, $args, $this )

Fires the action after a post is pushed via Distributor before remote request validation.

Parameters:
Name Type Description
$response array | WP_Error

The response from the remote request.

$post_body array

The Post data formatted for the REST API endpoint.

$type_url string

The Post type api endpoint.

$post_id int

The Post id.

$args array

The arguments passed into wp_insert_post.

$this WordPressExternalConnection

The Distributor connection being pushed to.

Since:
  • 2.0.0
Source: