I want to insert custom post type with it's custom fields values I have found this method to insert custom post type but with no custom fields
wp_insert_post( array $postarr, bool $wp_error = false, bool $fire_after_hooks = true )
But the problem is on how to insert custom field values (that exists)
meta_input
option that's covered in the documentation? developer.wordpress.org/reference/functions/wp_insert_post There's an example in the user contributed notes: developer.wordpress.org/reference/functions/wp_insert_post/…