Switch language

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




user_can_set_post_date [ WordPress Function ]

user_can_set_post_date ( $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 set new posts' dates.

Source


<?php
function user_can_set_post_date($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 4) && user_can_create_post($user_id$blog_id$category_id));
}
?>

Examples [ wp-snippets.com ]

Google Arama Sonuçlarý

Kullanýcý Tartýþmalarý [ wordpress.org ]

- Bulunamadý -

Yeni bir konu yaz ...

0 User Note(s)

Henüz yok. Ýlk sen ol!

Yeni Ekle ...



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