Yoast\WP\SEO\Conditionals

XMLRPC_Conditional::is_met()publicYoast 1.0

Returns whether the current request is an XML-RPC request.

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

Хуков нет.

Возвращает

true|false. true when the current request is an XML-RPC request, false if not.

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

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

Код XMLRPC_Conditional::is_met() Yoast 22.4

public function is_met() {
	return ( \defined( 'XMLRPC_REQUEST' ) && \XMLRPC_REQUEST );
}