edit_post_link

edit_post_link

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('edit_post_link') is found 1 times:

  • /wp-includes/link-template.php line 1542
    1538
    1539
    1540
    1541
    1542
    1543
    1544
    1545
    1546
    1547
    1548
         * @param string $link    Anchor tag for the edit link.
         * @param int    $post_id Post ID.
         * @param string $text    Anchor text.
         */
        echo $before . apply_filters( 'edit_post_link', $link, $post->ID, $text ) . $after;
    }
     
    /**
     * Retrieves the delete posts link for post.
     *
     * Can be used within the WordPress loop or outside of it, with any post type.

See this hook used in plugins: