WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru Платформа для конвертации и монетизации трафика
функция не описана

WC_Frontend_Scripts::register_script() private WC 1.0

Register a script for use.

{} Это метод класса: WC_Frontend_Scripts{}

Хуков нет.


Null. Ничего.


$result = WC_Frontend_Scripts::register_script( $handle, $path, $deps, $version, $in_footer );
$handle(строка) (обязательный)
Name of the script. Should be unique.
$path(строка) (обязательный)
Full URL of the script, or path of the script relative to the WordPress root directory.
An array of registered script handles this script depends on.
String specifying script version number, if it has one, which is added to the URL as a query string for cache busting purposes. If version is set to false, a version number is automatically added equal to current installed WordPress version. If set to null, no version is added.
Whether to enqueue the script before </body> instead of in the <head>.
По умолчанию: 'false'

Код WC_Frontend_Scripts::register_script() WC 5.0.0

private static function register_script( $handle, $path, $deps = array( 'jquery' ), $version = WC_VERSION, $in_footer = true ) {
	self::$scripts[] = $handle;
	wp_register_script( $handle, $path, $deps, $version, $in_footer );