Automattic\WooCommerce\Internal\Admin
WCAdminAssets::get_path()
Gets the path for the asset depending on file type.
Метод класса: WCAdminAssets{}
Хуков нет.
Возвращает
Строку
. Folder path of asset.
Использование
$result = WCAdminAssets::get_path( $ext );
- $ext(строка) (обязательный)
- File extension.
Код WCAdminAssets::get_path() WCAdminAssets::get path WC 9.5.1
public static function get_path( $ext ) { return ( $ext === 'css' ) ? WC_ADMIN_DIST_CSS_FOLDER : WC_ADMIN_DIST_JS_FOLDER; }