BP_Optout::optout_exists( $args = array() )

Check whether an invitation exists matching the passed arguments.


Description Description

See also See also


Top ↑

Return Return

(int|bool) ID of first found invitation or false if none found.


Top ↑

Source Source

File: bp-core/classes/class-bp-optout.php

	public function optout_exists( $args = array() ) {
		$exists = false;

		$args['fields'] = 'ids';
		$optouts        = BP_Optout::get( $args );
		if ( $optouts ) {
			$exists = current( $optouts );
		}

		return $exists;
	}


Top ↑

Changelog Changelog

Changelog
Version Description
5.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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