WPSEO_Admin_Asset_Dev_Server_Location::get_default_url()publicYoast 1.0

Determines the URL of the asset not using the dev server.

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

Хуков нет.

Возвращает

Строку. The URL of the asset file.

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

$WPSEO_Admin_Asset_Dev_Server_Location = new WPSEO_Admin_Asset_Dev_Server_Location();
$WPSEO_Admin_Asset_Dev_Server_Location->get_default_url( $asset, $type );
$asset(WPSEO_Admin_Asset) (обязательный)
The asset to determine the URL for.
$type(строка) (обязательный)
The type of asset.

Код WPSEO_Admin_Asset_Dev_Server_Location::get_default_url() Yoast 22.3

public function get_default_url( WPSEO_Admin_Asset $asset, $type ) {
	$default_location = new WPSEO_Admin_Asset_SEO_Location( WPSEO_FILE );

	return $default_location->get_url( $asset, $type );
}