WPCF7_Integration::get_service()publicCF7 1.0

Returns a service object with the name.

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

Хуков нет.

Возвращает

WPCF7_Service|true|false. The service object if it exists, false otherwise.

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

$WPCF7_Integration = new WPCF7_Integration();
$WPCF7_Integration->get_service( $name );
$name(строка) (обязательный)
The name of service.

Код WPCF7_Integration::get_service() CF7 5.9.3

public function get_service( $name ) {
	if ( $this->service_exists( $name ) ) {
		return $this->services[$name];
	} else {
		return false;
	}
}