bp_activity_check_exists_by_content( string $content )

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

Description

Parameters

$content

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

Return

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

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

Changelog

Changelog
Version Description
BuddyPress 1.1.0 Introduced.

Questions?

We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.