In admin, I need to fire the
save_post action before firing the
transition_post_status hook. But according to this, the
transition_post_status fires first before the post is saved.
How can I reverse it? I tried changing the priority order below, but I don't think it works cos it's for different functions firing for the same action.
$this->loader->add_action( 'save_post', $plugin_admin_listings, 'save_meta_data', 9, 2 ); $this->loader->add_action( 'transition_post_status', $plugin_admin_listings, 'transition_post_status', 10, 3 );