Function
Filter the post edit link.
tml_filter_get_edit_post_link( string $link, int $post_id )
Parameters
-
$linkstring - The edit post link.
-
$post_idint - 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
| Version | Description |
|---|---|
| 7.0 | Introduced. |