I am using the publish_post action to run some checks on a user after their post is published:
$author_ID = ???? add_action('publish_post', 'rhb_check_current_user', 10, $author_ID);
How can I get the original author's ID?
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It only takes a minute to sign up.Sign up to join this community
I think get_currentuserinfo() is what you're looking for.