WPSEO_Admin_Asset_Manager::create_default_location()
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() WPSEO Admin Asset Manager::create default location Yoast 24.0
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 ); }