WPCF7_Integration::service_exists()publicCF7 1.0

Returns true if a service with the name exists in the services list.

{} Это метод класса: WPCF7_Integration{}

Хуков нет.

Возвращает

null. Ничего.

Использование

$WPCF7_Integration = new WPCF7_Integration();
$WPCF7_Integration->service_exists( $name );
$name(строка)
The name of service to search.
По умолчанию: ''

Код WPCF7_Integration::service_exists() CF7 5.6.3

public function service_exists( $name = '' ) {
	if ( '' == $name ) {
		return (bool) count( $this->services );
	} else {
		return isset( $this->services[$name] );
	}
}