Yoast\WP\SEO\Conditionals

XMLRPC_Conditional{}Yoast 1.0

Conditional that is met when the current request is an XML-RPC request.

Хуков нет.

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

$XMLRPC_Conditional = new XMLRPC_Conditional();
// use class methods

Методы

  1. public is_met()

Код XMLRPC_Conditional{} Yoast 18.8

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 );
	}
}