get_edit_post_link WordPress Filter Hook

The get_edit_post_link Wordpress hook is a great way to get a link to edit a post in the Wordpress admin. This can be useful if you want to create a custom front-end for your site and need to give users the ability to edit their posts.

apply_filters( 'get_edit_post_link', string $link, int $post_id, string $context ) #

Filters the post edit link.


Parameters

$link

(string)The edit link.

$post_id

(int)Post ID.

$context

(string)The link context. If set to 'display' then ampersands are encoded.


Top ↑

Source

File: wp-includes/link-template.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
2.3.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More
Show More