bp_core_filter_edit_post_link( string $edit_link = '', int $post_id )
Filter the edit post link to avoid its display in BuddyPress pages.
Description Description
Parameters Parameters
- $edit_link
-
(Optional) The edit link.
Default value: ''
- $post_id
-
(Required) Post ID.
Return Return
(false|string) Will be a boolean (false) if $post_id is 0. Will be a string (the unchanged edit link) otherwise
Source Source
File: bp-core/bp-core-filters.php
function bp_core_filter_edit_post_link( $edit_link = '', $post_id = 0 ) { if ( 0 === $post_id ) { $edit_link = false; } return $edit_link; }
Changelog Changelog
Version | Description |
---|---|
2.1.0 | Introduced. |