WPCF7_Integration::service_exists
Returns true if a service with the name exists in the services list.
Метод класса: WPCF7_Integration{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$WPCF7_Integration = new WPCF7_Integration(); $WPCF7_Integration->service_exists( $name );
- $name(строка)
- The name of service to search.
По умолчанию:''
Код WPCF7_Integration::service_exists() WPCF7 Integration::service exists CF7 6.1.6
public function service_exists( $name = '' ) {
if ( '' === $name ) {
return (bool) count( $this->services );
} else {
return isset( $this->services[$name] );
}
}