Site icon Hip-Hop Website Design and Development

Programmatically emulate viewing a post in wp-admin

A process is triggered when I view a post at https://my.wordpress.page/wp-admin . I don’t know what is happening during that process. I want to trigger it for all posts in a list of post ids. How can I programmatically start all processes that start when a post is viewed in the wp-admin page?

Something like

view_post_in_wp_admin( 123 );

where 123 is the post id.