Insert or update post content (inside the editor)

Is there any way to insert or update the_content with php?

Something like:

$post_data = array(‘post_content’ => ‘[messi vid=”‘.$int.'”],’);
wp_insert_post( $post_data );

Please, not filter the_content. I need to insert the shortcode inside the wp_editor.

Read more here:: Insert or update post content (inside the editor)

Leave a Reply

Your email address will not be published. Required fields are marked *