I am inserting posts into a database using
wp_insert_post function once the post is inserted using below line of PHP
$postId = wp_insert_post($array)
I can insert values in my advanced custom fields using
add_post_meta function but I didn't find anything to insert the SEO title or the meta description specifically in the Yoast SEO plugin.
Can anyone help me with this?