You appear to be a bot. Output may be restricted
Description
Initialize callables action listeners.
Usage
Callables::init_listeners( $callable );
Parameters
- $callable
- ( callable ) required – Action handler callable.
Returns
void
Source
File name: jetpack/vendor/automattic/jetpack-sync/src/modules/class-callables.php
Lines:
1 to 24 of 24
public function init_listeners( $callable ) { add_action( 'jetpack_sync_callable', $callable, 10, 2 ); add_action( 'current_screen', array( $this, 'set_plugin_action_links' ), 9999 ); // Should happen very late. foreach ( self::ALWAYS_SEND_UPDATES_TO_THESE_OPTIONS as $option ) { add_action( "update_option_{$option}", array( $this, 'unlock_sync_callable' ) ); add_action( "delete_option_{$option}", array( $this, 'unlock_sync_callable' ) ); } foreach ( self::ALWAYS_SEND_UPDATES_TO_THESE_OPTIONS_NEXT_TICK as $option ) { add_action( "update_option_{$option}", array( $this, 'unlock_sync_callable_next_tick' ) ); add_action( "delete_option_{$option}", array( $this, 'unlock_sync_callable_next_tick' ) ); } // Provide a hook so that hosts can send changes to certain callables right away. // Especially useful when a host uses constants to change home and siteurl. add_action( 'jetpack_sync_unlock_sync_callable', array( $this, 'unlock_sync_callable' ) ); // get_plugins and wp_version // gets fired when new code gets installed, updates etc. add_action( 'upgrader_process_complete', array( $this, 'unlock_plugin_action_link_and_callables' ) ); add_action( 'update_option_active_plugins', array( $this, 'unlock_plugin_action_link_and_callables' ) ); }