WordPress Version: 4.6
/**
* Whether user can create a post.
*
* @since 1.5.0
* @deprecated 2.0.0 Use current_user_can()
* @see current_user_can()
*
* @param int $user_id
* @param int $blog_id Not Used
* @param int $category_id Not Used
* @return bool
*/
function user_can_create_post($user_id, $blog_id = 1, $category_id = 'None')
{
_deprecated_function(__FUNCTION__, '2.0.0', 'current_user_can()');
$author_data = get_userdata($user_id);
return $author_data->user_level > 1;
}