• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
Jetpack a2z

Jetpack a2z

Jetpack a2z

  • Home
  • Plugins
  • Blocks
  • Shortcodes
  • APIs
  • Classes
  • Files
  • Hooks
  • Sitemap
  • Blog
Home / APIs / Actions::initialize_search() – Initializes sync for Instant Search.

You appear to be a bot. Output may be restricted

Description

Initializes sync for Instant Search.

Usage

Actions::initialize_search();

Parameters

Returns

void

Source

File name: jetpack/jetpack_vendor/automattic/jetpack-sync/src/class-actions.php
Lines:

1 to 9 of 9
  public static function initialize_search() {
    if ( false === class_exists( 'Automattic\\Jetpack\\Search\\Module_Control' ) ) {
      return;
    }
    $search_module = new \Automattic\Jetpack\Search\Module_Control();
    if ( $search_module->is_instant_search_enabled() ) {
      add_filter( 'jetpack_sync_modules', array( __CLASS__, 'add_search_sync_module' ) );
    }
  }
 

 View on GitHub View on Trac

Share this:

  • Click to share on Twitter (Opens in new window)
  • Click to share on Facebook (Opens in new window)
  • Click to share on LinkedIn (Opens in new window)
  • Click to share on Pinterest (Opens in new window)

Related

Published: 7 February 2022 | Last updated: 7 February 2022

Primary Sidebar

Information

Function name: Actions::initialize_search
Class ref: Actions
Plugin ref: Jetpack
Version: 11.0
Sourcefile: jetpack_vendor/automattic/jetpack-sync/src/class-actions.php
File ref: jetpack_vendor/automattic/jetpack-sync/src/class-actions.php
Deprecated?: No
API Letters: A,I,S

Footer

Jetpack a2z
Jetpack a2z
Jetpack a2z
WordPress 6.0
WordPress a2z
WordPress core a2z
Genesis Theme Framework a2z
Jetpack a2z
WordPress develop tests
Easy Digital Downloads a2z
WooCommerce a2z
Yoast SEO a2z
WordPress Blocks

Site:  jetpack.wp-a2z.org
© Copyright Jetpack a2z 2014-2022. All rights reserved.


Website designed and developed by Herb Miller
Proudly powered by WordPress and oik plugins

  • Home
  • Blog
  • Sitemap
  • Sites