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.


Top ↑

Return Return

(false|string) Will be a boolean (false) if $post_id is 0. Will be a string (the unchanged edit link) otherwise


Top ↑

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;
}

Top ↑

Changelog Changelog

Changelog
Version Description
2.1.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.