user_can_create_draft [ WordPress Function ]
user_can_create_draft ( $user_id, $blog_id = 1, $category_id = 'None' )
| Parameters: |
|
| See: | |
| Returns: |
|
| Defined at: |
|
Soorgelijke functies: user_can_create_post, user_can_richedit, user_can_delete_post, user_can_edit_post, user_can_edit_user
Whether user can create a post.
Examples [ wp-snippets.com ]
Top Google zoekresultaten
- WordPress › Support » Adding a logged in user's name
user_can_create_draft($user_ID) ? ( ". <li>" . __('Welcome', "") . "" . "</li> n". manstraw. Member Posted 5 years ago #. to be sure your code isn't messed up, put ...
wordpress.org - WordPress › Support » Limit # of total draft posts from each user?
if (user_can_create_draft($user_ID)) {. In this section, just after the $drafts = $ wpdb->... query line, insert this: $num_drafts = count($drafts); if($num_drafts > 2 ...
wordpress.org - Migrating Plugins and Themes to 2.1 « WordPress Codex
... or WP_Scripts); user_can_create_draft (use current_user_can); user_can_create_post (use current_user_can); user_can_delete_post (use current_user_can) ...
codex.wordpress.org - Deprecated functions and WP_DEBUG | Andrew Nacin
Mar 22, 2010 ... And it can return any usermeta field. current_user_can() , likewise, replaced a bunch of functions along the lines of user_can_create_draft() and ...
nacin.com