PluginProbe
Jetpack – WP Security, Backup, Speed, & Growth / 16.3-a.7
Jetpack – WP Security, Backup, Speed, & Growth v16.3-a.7
16.3-a.5 16.3-a.7 16.3-a.3 16.3-a.1 16.2 16.2-beta 12.0.3 12.1.3 12.2.3 12.3.2 12.4.2 12.5.2 12.6.4 12.7.3 12.8.3 12.9.5 13.0.2 13.1.5 13.2.4 13.3.3 13.4.5 13.5.2 13.6.2 13.7.2 13.8.3 All 506 releases
jetpack / jetpack_vendor / automattic / jetpack-licensing / actions.php

actions.php in Jetpack – WP Security, Backup, Speed, & Growth 16.3-a.7, at jetpack_vendor/automattic/jetpack-licensing/actions.php

24 lines 644 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Action Hooks for the Jetpack licensing package.
4 *
5 * @package automattic/jetpack-licensing
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(
12 'plugins_loaded',
13 array( Automattic\Jetpack\Licensing::class, 'configure' ),
14 1
15 );
16 } else {
17 global $wp_filter;
18 // phpcs:ignore WordPress.WP.GlobalVariablesOverride.Prohibited
19 $wp_filter['plugins_loaded'][1][] = array(
20 'accepted_args' => 0,
21 'function' => array( Automattic\Jetpack\Licensing::class, 'configure' ),
22 );
23 }
24