Wordpress - WordPress Settings and Configuration
What will the following code output if the current user has the 'publish_posts' capability?
if (current_user_can('publish_posts')) {
echo 'Can publish';
} else {
echo 'Cannot publish';
}