/var/www/html_us/wp-content/plugins/woocommerce/vendor/automattic/jetpack-assets/actions.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?php
/**
 * Action Hooks for Jetpack Assets module.
 *
 * @package automattic/jetpack-assets
 */

// If WordPress's plugin API is available already, use it. If not,
// drop data into `$wp_filter` for `WP_Hook::build_preinitialized_hooks()`.
if ( function_exists'add_action' ) ) {
    
add_action'wp_default_scripts', array( Automattic\Jetpack\Assets::class, 'wp_default_scripts_hook' ) );
    
add_action'plugins_loaded', array( Automattic\Jetpack\Assets\Script_Data::class, 'configure' ), );
} else {
    global 
$wp_filter;
    
// phpcs:ignore WordPress.WP.GlobalVariablesOverride.Prohibited
    
$wp_filter['wp_default_scripts'][10][] = array(
        
'accepted_args' => 1,
        
'function'      => array( Automattic\Jetpack\Assets::class, 'wp_default_scripts_hook' ),
    );
    
// phpcs:ignore WordPress.WP.GlobalVariablesOverride.Prohibited
    
$wp_filter['plugins_loaded'][1][] = array(
        
'accepted_args' => 0,
        
'function'      => array( Automattic\Jetpack\Assets\Script_Data::class, 'configure' ),
    );
}