jetpack_just_in_time_msg_cache, true

jetpack_just_in_time_msg_cache, true

Appears in:
Hook Type: filter

See hook in core

Displaying hooks found in version: jetpack.16.0.1

apply_filters('jetpack_just_in_time_msg_cache, true') is found 2 times:

  • /jetpack_vendor/automattic/jetpack-jitm/src/class-jitm.php line 454
    	public function jetpack_track_last_sync_callback( $params ) {
    		/**
    		 * This filter is documented in the Automattic\Jetpack\JITMS\Post_Connection_JITM class.
    		 */
    		if ( ! apply_filters( 'jetpack_just_in_time_msg_cache', true ) ) {
    			return $params;
    		}
    
    		if ( is_array( $params ) && isset( $params[0] ) ) {
    			$option = $params[0];
    			if ( 'active_plugins' === $option ) {
    
  • /jetpack_vendor/automattic/jetpack-jitm/src/class-post-connection-jitm.php line 300
    		 * @since-jetpack 5.4.0
    		 *
    		 * @param bool true Whether to cache just in time messages
    		 */
    		if ( apply_filters( 'jetpack_just_in_time_msg_cache', true ) ) {
    			$use_cache = true;
    		}
    
    		if ( $use_cache ) {
    			$last_sync = (int) get_transient( 'jetpack_last_plugin_sync' );
    			// The sync timestamp indicates when a plugin change was last sent to Jetpack, however,