関数 edit_comment_link()
2015/01/14
関数 edit_comment_link()
定義ファイル :/blog/wp-includes/link-template.php 3
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | function edit_comment_link( $text = null, $before = '', $after = '' ) { global $comment; if ( ! current_user_can( 'edit_comment', $comment->comment_ID ) ) { return; } if ( null === $text ) { $text = __( 'Edit This' ); } $link = '<a class="comment-edit-link" href="' . get_edit_comment_link( $comment->comment_ID ) . '">' . $text . '</a>'; echo $before . apply_filters( 'edit_comment_link', $link, $comment->comment_ID, $text ) . $after; } |