-
Notifications
You must be signed in to change notification settings - Fork 19
friend_post_edit_link
github-actions[bot] edited this page Jul 28, 2026
·
38 revisions
Allow overriding the link for editing friend posts.
By default on the Frontend, a post cannot be edited because $new_link is false.
add_filter( 'friend_post_edit_link', function( $link, $original_link ) {
if ( ! $link ) {
$link = $original_link; // always allow editing.
}
return $link;
}, 10, 2 );$new_link$link
apply_filters( 'friend_post_edit_link', $new_link, $link )