関数 get_edit_comment_link()
2015/01/14
関数 get_edit_comment_link()
定義ファイル :/blog/wp-includes/link-template.php 3
1 2 3 4 5 6 7 8 9 10 | function get_edit_comment_link( $comment_id = 0 ) { $comment = get_comment( $comment_id ); if ( !current_user_can( 'edit_comment', $comment->comment_ID ) ) return; $location = admin_url('comment.php?action=editcomment&c=') . $comment->comment_ID; return apply_filters( 'get_edit_comment_link', $location ); } |