Switch language

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




user_can_delete_post_comments [ WordPress Function ]

user_can_delete_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 delete $post_id's comments
Defined at:



Whether user can delete a post.

Source


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

    
// right now if one can edit comments, one can delete comments
    
return user_can_edit_post_comments($user_id$post_id$blog_id);
}
?>

Examples [ wp-snippets.com ]

Google Arama Sonuçlarý

Dahasý ...

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