Switch language

wpseek.com
A WordPress-centric search engine for devs and theme authors




user_can_create_draft [ WordPress Function ]

user_can_create_draft ( $user_id, $blog_id = 1, $category_id = 'None' )
Parameters:
  • (int) $user_id
  • (int) $blog_id Not Used
  • (int) $category_id Not Used
See:
Returns:
  • (bool)
Defined at:



Whether user can create a post.

Source


<?php
function user_can_create_draft($user_id$blog_id 1$category_id 'None') {
    
_deprecated_function__FUNCTION__'2.0''current_user_can()' );

    
$author_data get_userdata($user_id);
    return (
$author_data->user_level >= 1);
}
?>

Examples [ wp-snippets.com ]

Top Google zoekresultaten

Meer ...

Gebruikersdiscussies [ wordpress.org ]

0 User Note(s)

Nog geen één. Wees de eerste!

Nieuw toevoegen ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics