Skip to content

Function

Filter the post edit link.

tml_filter_get_edit_post_link( string $link, int $post_id )

Parameters

$link string
The edit post link.
$post_id int
The post ID.

Return

string The edit post link.

Source

function tml_filter_get_edit_post_link( $link, $post_id ) {
    if ( tml_is_action() && 0 === $post_id ) {
        $link = '';
    }
    return $link;
}

Uses

See also

Changelog

VersionDescription
7.0 Introduced.