Languages: English • Italiano • (Add your language)
Whether author of supplied post has capability or role.
<?php author_can( $post, $capability ); ?>
<?php
if (author_can($post->ID, 'publish_posts')) {
echo "Yes he can publish posts!";
}
?>
Since: Wordpress 2.9.0
author_can() is located in wp-includes/capabilities.php.