get_edit_bookmark_link example

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;
}

<?php     }

    /** * Handles the link name column output. * * @since 4.3.0 * * @param object $link The current link object. */
    public function column_name( $link ) {
        $edit_link = get_edit_bookmark_link( $link );
        printf(
            '<strong><a class="row-title" href="%s" aria-label="%s">%s</a></strong>',
            $edit_link,
            /* translators: %s: Link name. */
            esc_attr( sprintf( __( 'Edit &#8220;%s&#8221;' )$link->link_name ) ),
            $link->link_name
        );
    }

    /** * Handles the link URL column output. * * @since 4.3.0 * * @param object $link The current link object. */
Home | Imprint | This part of the site doesn't use cookies.