Yoast\WP\SEO\Services\Health_Check

MyYoast_Api_Request_Factory{}Yoast 1.0

Creates WPSEO_MyYoast_Api_Request objects.

Хуков нет.

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

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

Методы

  1. public create( $url, $args = [] )

Код MyYoast_Api_Request_Factory{} Yoast 19.2

class MyYoast_Api_Request_Factory {

	/**
	 * Creates a new WPSEO_MyYoast_API_Request.
	 *
	 * @param string $url The URL for the request.
	 * @param array  $args Optional arguments for the request.
	 * @return WPSEO_MyYoast_Api_Request
	 */
	public function create( $url, $args = [] ) {
		return new WPSEO_MyYoast_Api_Request( $url, $args );
	}
}