Skip to main content
3 of 3
edited tags
fuxia
  • 107.1k
  • 38
  • 255
  • 459

get author of published post

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?

idea
  • 181
  • 1
  • 1
  • 9