Wordpress Action Upon Edit Post Load Wordpress Action Upon Edit Post Load wordpress wordpress

Wordpress Action Upon Edit Post Load

Try this one:

add_action( 'load-edit.php', 'post_listing_page' );function post_listing_page() {    //this is the wp-admin edit.php post listing page!}

in your case:

add_action( 'load-edit.php', 'transcription' );

Reference: https://codex.wordpress.org/Plugin_API/Action_Reference/load-(page)

Come to find out that when you do an add-action on load-post.php (the correct action for when you want to edit the individual post), it does not pass the post_id. Since my transcription module was dependent on getting the post ID, it was as simple as run $_GET['post'] and assigning it to the post_id variable transcription required

add_action( 'load-post.php', 'transcription' );function transcription($post_id)  {//Transcription Status 0 = Not Transcribed but uploaded, 1=Submitted for Transcription, 2=Transcribed 3=Transcribed and Addd to Post    $post_id = $_GET[ 'post' ];//Do whatever with transcription}

This turns out to be the solution.