PluginProbe
QuadMenu – Mega Menu / 3.3.7
QuadMenu – Mega Menu v3.3.7
3.3.8 3.3.7 3.3.6 trunk 1.8.4 1.8.5 1.8.7 1.8.8 1.8.9 1.9.0 1.9.2 1.9.3 1.9.4 1.9.5 1.9.6 1.9.7 1.9.8 1.9.9 2.0.0 2.0.1 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 All 88 releases
quadmenu / jetpack_vendor / automattic / jetpack-assets / actions.php

actions.php in QuadMenu – Mega Menu 3.3.7, at jetpack_vendor/automattic/jetpack-assets/actions.php

32 lines 1.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Action Hooks for Jetpack Assets module.
4 *
5 * @package automattic/jetpack-assets
6 */
7
8 // If WordPress's plugin API is available already, use it. If not,
9 // drop data into `$wp_filter` for `WP_Hook::build_preinitialized_hooks()`.
10 if ( function_exists( 'add_action' ) ) {
11 add_action( 'wp_default_scripts', array( Automattic\Jetpack\Assets::class, 'wp_default_scripts_hook' ) );
12 add_action( 'plugins_loaded', array( Automattic\Jetpack\Assets\Script_Data::class, 'configure' ), 1 );
13 add_action( 'plugins_loaded', array( Automattic\Jetpack\Assets\Shared_Stores_Assets::class, 'configure' ), 1 );
14 } else {
15 global $wp_filter;
16 // phpcs:ignore WordPress.WP.GlobalVariablesOverride.Prohibited
17 $wp_filter['wp_default_scripts'][10][] = array(
18 'accepted_args' => 1,
19 'function' => array( Automattic\Jetpack\Assets::class, 'wp_default_scripts_hook' ),
20 );
21 // phpcs:ignore WordPress.WP.GlobalVariablesOverride.Prohibited
22 $wp_filter['plugins_loaded'][1][] = array(
23 'accepted_args' => 0,
24 'function' => array( Automattic\Jetpack\Assets\Script_Data::class, 'configure' ),
25 );
26 // phpcs:ignore WordPress.WP.GlobalVariablesOverride.Prohibited
27 $wp_filter['plugins_loaded'][1][] = array(
28 'accepted_args' => 0,
29 'function' => array( Automattic\Jetpack\Assets\Shared_Stores_Assets::class, 'configure' ),
30 );
31 }
32