woocommerce_blocks_register_script_dependencies

woocommerce_blocks_register_script_dependencies

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: woocommerce.8.7.0

apply_filters('woocommerce_blocks_register_script_dependencies') is found 1 times:

  • /src/Blocks/Assets/Api.php line 275
    		 * @param array $dependencies The list of script dependencies.
    		 * @param string $handle The script's handle.
    		 * @return array
    		 */
    		$script_dependencies = apply_filters( 'woocommerce_blocks_register_script_dependencies', $script_data['dependencies'], $handle );
    
    		wp_register_script( $handle, $script_data['src'], $script_dependencies, $script_data['version'], true );
    
    		if ( $has_i18n && function_exists( 'wp_set_script_translations' ) ) {
    			wp_set_script_translations( $handle, 'woocommerce', $this->package->get_path( 'languages' ) );
    		}
    

See this hook used in plugins: