Switch language

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




user_can_edit_post_comments [ WordPress Function ]

user_can_edit_post_comments ( $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 comments
Defined at:



Whether user can delete a post.

Source


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

    
// right now if one can edit a post, one can edit comments made on it
    
return 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