rest_api_inserted_post, $post_id, $insert, $new

rest_api_inserted_post, $post_id, $insert, $new

Appears in:
Hook Type: action

See hook in core

Displaying hooks found in version: jetpack.16.0.1

do_action('rest_api_inserted_post, $post_id, $insert, $new') is found 3 times:

  • /json-endpoints/class.wpcom-json-api-update-post-endpoint.php line 849
    		 * @param int $post_id Post ID.
    		 * @param array $insert Data used to build the post.
    		 * @param string $new New post URL suffix.
    		 */
    		do_action( 'rest_api_inserted_post', $post_id, $insert, $new );
    
    		$return = $this->get_post_by( 'ID', $post_id, $args['context'] );
    		if ( ! $return || is_wp_error( $return ) ) {
    			return $return;
    		}
    
    
  • /json-endpoints/class.wpcom-json-api-update-post-v1-1-endpoint.php line 918
    			}
    		}
    
    		/** This action is documented in json-endpoints/class.wpcom-json-api-update-post-endpoint.php */
    		do_action( 'rest_api_inserted_post', $post_id, $insert, $new );
    
    		$return = $this->get_post_by( 'ID', $post_id, $args['context'] );
    		if ( ! $return || is_wp_error( $return ) ) {
    			return $return;
    		}
    
    
  • /json-endpoints/class.wpcom-json-api-update-post-v1-2-endpoint.php line 923
    			}
    		}
    
    		/** This action is documented in json-endpoints/class.wpcom-json-api-update-post-endpoint.php */
    		do_action( 'rest_api_inserted_post', $post_id, $insert, $new );
    
    		$return = $this->get_post_by( 'ID', $post_id, $args['context'] );
    		if ( ! $return || is_wp_error( $return ) ) {
    			return $return;
    		}