WPSEO_Admin_Asset_Location{}Yoast 1.0

Represents a way to determine an assets location.

Хуков нет.

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

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

Методы

  1. public get_url( WPSEO_Admin_Asset $asset, $type )

Код WPSEO_Admin_Asset_Location{} Yoast 22.4

interface WPSEO_Admin_Asset_Location {

	/**
	 * Determines the URL of the asset on the dev server.
	 *
	 * @param WPSEO_Admin_Asset $asset The asset to determine the URL for.
	 * @param string            $type  The type of asset. Usually JS or CSS.
	 *
	 * @return string The URL of the asset.
	 */
	public function get_url( WPSEO_Admin_Asset $asset, $type );
}