wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi
edit_bookmark_link › WordPress Function
Da2.7.0
Deprecaton/a
› edit_bookmark_link ( $link = '', $before = '', $after = '', $bookmark = null )
Parametri: (4) |
|
Definito a: |
|
Codex: |
Displays the edit bookmark link anchor content.
Funzioni correlate: get_edit_bookmark_link, get_bookmark, get_bookmark_field, get_bookmarks, edit_tag_link
Sorgenti
function edit_bookmark_link( $link = '', $before = '', $after = '', $bookmark = null ) { $bookmark = get_bookmark( $bookmark ); if ( ! current_user_can( 'manage_links' ) ) { return; } if ( empty( $link ) ) { $link = __( 'Edit This' ); } $link = '<a href="' . esc_url( get_edit_bookmark_link( $bookmark ) ) . '">' . $link . '</a>'; /** * Filters the bookmark edit link anchor tag. * * @since 2.7.0 * * @param string $link Anchor tag for the edit link. * @param int $link_id Bookmark ID. */ echo $before . apply_filters( 'edit_bookmark_link', $link, $bookmark->link_id ) . $after; }