WPSEO_Admin_Asset_Manager::create_default_location()public staticYoast 1.0

Creates a default location object for use in the admin asset manager.

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

Хуков нет.

Возвращает

WPSEO_Admin_Asset_Location. The location to use in the asset manager.

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

$result = WPSEO_Admin_Asset_Manager::create_default_location();

Код WPSEO_Admin_Asset_Manager::create_default_location() Yoast 19.11

public static function create_default_location() {
	if ( defined( 'YOAST_SEO_DEV_SERVER' ) && YOAST_SEO_DEV_SERVER ) {
		$url = defined( 'YOAST_SEO_DEV_SERVER_URL' ) ? YOAST_SEO_DEV_SERVER_URL : WPSEO_Admin_Asset_Dev_Server_Location::DEFAULT_URL;

		return new WPSEO_Admin_Asset_Dev_Server_Location( $url );
	}

	return new WPSEO_Admin_Asset_SEO_Location( WPSEO_FILE, false );
}