Yoast\WP\SEO\Conditionals

Headless_Rest_Endpoints_Enabled_Conditional::is_met()publicYoast 1.0

Returns true whether the headless REST endpoints have been enabled.

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

Хуков нет.

Возвращает

true|false. true when the headless REST endpoints have been enabled.

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

$Headless_Rest_Endpoints_Enabled_Conditional = new Headless_Rest_Endpoints_Enabled_Conditional();
$Headless_Rest_Endpoints_Enabled_Conditional->is_met();

Код Headless_Rest_Endpoints_Enabled_Conditional::is_met() Yoast 24.0

public function is_met() {
	return $this->options->get( 'enable_headless_rest_endpoints' );
}