Yoast\WP\SEO\Conditionals
XMLRPC_Conditional{}└─ Conditional
Conditional that is met when the current request is an XML-RPC request.
Хуков нет.
Использование
$XMLRPC_Conditional = new XMLRPC_Conditional(); // use class methods
Методы
- public is_met()
Код XMLRPC_Conditional{} XMLRPC Conditional{} Yoast 28.3
class XMLRPC_Conditional implements Conditional {
/**
* Returns whether the current request is an XML-RPC request.
*
* @return bool `true` when the current request is an XML-RPC request, `false` if not.
*/
public function is_met() {
return ( \defined( 'XMLRPC_REQUEST' ) && \XMLRPC_REQUEST );
}
}