bp_activity_check_exists_by_content( string $content )

Check whether an activity item exists with a given content string.


Parameters Parameters

$content

(string) (Required) The content to filter by.


Top ↑

Return Return

(int|null) The ID of the located activity item. Null if none is found.


Source Source

File: bp-activity/bp-activity-functions.php

function bp_activity_check_exists_by_content( $content ) {

	/**
	 * Filters the results of the check for whether an activity item exists by specified content.
	 *
	 * @since 1.1.0
	 *
	 * @param BP_Activity_Activity $value ID of the activity if found, else null.
	 */
	return apply_filters( 'bp_activity_check_exists_by_content', BP_Activity_Activity::check_exists_by_content( $content ) );
}


Top ↑

Changelog Changelog

Changelog
Version Description
1.1.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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