Hi, looks like not long ago Zapier closed the possibility of Wordpress (Legacy) post create method. I have to switch to "new" Wordpress post creation (it also requires plugin installation).
I'm wondering whether they Zapier using some REST system to create the posts. Can you please provide more info ? This is because I have some additional code (in my Wordpress) that stopped working
the code is :
function broadcast_wp_insert_post( $post_id, $post )
{
/**
@brief Check for this taxonomy and broadcast to SHT.COM
@since 2018-10-27 15:36:08
**/
$taxonomy = 'post_tag';
/**
@brief Check for this taxonomy term.
@since 2018-10-27 15:36:26
**/
$term = 'ifttted’;
/**
@brief Broadcast the post to these blogs if the tax+term exists.
@since 2018-10-27 15:36:44
**/
$blogs = = 3 ];
if ( ! function_exists( 'ThreeWP_Broadcast' ) )
return;
// Post must have a specific category.
if ( ! has_term( $term, $taxonomy, $post ) )
return;
// Return an instance of broadcast.
$bc = ThreeWP_Broadcast();
// Don't broadcast if we are already broadcasting.
if ( $bc->is_broadcasting() )
return;
$bc->api()->broadcast_children( $post_id, $blogs );
}
add_action( 'wp_insert_post', 'broadcast_wp_insert_post', 10, 2 );