Is there a way to trigger the post saving or updating event in code? such as
The function here seems to imply that a WP_POST object needs to be passed in. Is there a way to basically imitate the action of updating the post with all its existing values. The point is for the other hooks linked to all trigger on post update. Maybe do a
wp_insert_post(), just passing in the post id?
do_action( 'save_post', int $post_ID, WP_Post $post, bool $update )