File Editor
Directories:
.. (Back)
build
src
Files:
LICENSE.txt
actions.php
babel.config.js
webpack.config.js
Create New File
Create
Edit File: actions.php
<?php /** * Action Hooks for Jetpack Publicize module. * * @package automattic/jetpack-publicize */ // 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( 'plugins_loaded', array( Automattic\Jetpack\Publicize\Publicize_Assets::class, 'configure' ), 1 ); } else { global $wp_filter; // phpcs:ignore WordPress.WP.GlobalVariablesOverride.Prohibited $wp_filter['plugins_loaded'][1][] = array( 'accepted_args' => 0, 'function' => array( Automattic\Jetpack\Publicize\Publicize_Assets::class, 'configure' ), ); }
Save Changes
Rename File
Rename