author_can


author_can ( $post, $capability )

Parameters:
  • (int|WP_Post) $post Post ID or post object.
  • (string) $capability Capability name.
Returns:
  • (bool) Whether the post author has the given capability.
Defined at:

Description

Whether the author of the supplied post has a specific capability.

Related Functions

the_author_icq, the_author_aim, the_author_msn, user_can, the_author_link

Top Google Results

User discussions

wpseek mobile