I want to create a page using wp_insert_post but set the page to have Elementor content. Here is the code I have:
// Create post object
$my_post = array(
'post_title' => wp_strip_all_tags( 'Test Page' ),
'post_content' => 'elementor json goes here',
'post_status' => 'publish',
'post_author' => 1,
'post_type' => 'page'
);
// Insert the post into the database
wp_insert_post( $my_post );
But when I do this, the content just prints the actual JSON.