Switch language

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




user_can_edit_post_date [ WordPress Function ]

user_can_edit_post_date ( $user_id, $post_id, $blog_id = 1 )
Parameters:
  • (int) $user_id
  • (int) $post_id
  • (int) $blog_id Not Used
See:
Returns:
  • (bool) returns true if $user_id can edit $post_id's date
Defined at:



Whether user can delete a post.

Source


<?php
function user_can_edit_post_date($user_id$post_id$blog_id 1) {
    
_deprecated_function__FUNCTION__'2.0''current_user_can()' );

    
$author_data get_userdata($user_id);
    return ((
$author_data->user_level 4) && user_can_edit_post($user_id$post_id$blog_id));
}
?>

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