jetpack_search_should_add_search_submenu

jetpack_search_should_add_search_submenu

Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: jetpack.14.0

apply_filters('jetpack_search_should_add_search_submenu') is found 1 times:

  • /jetpack_vendor/automattic/jetpack-search/src/dashboard/class-dashboard.php line 149
    		 * @since 0.11.2
    		 *
    		 * @param boolean $should_add_search_submenu Default value is true.
    		 */
    		return apply_filters( 'jetpack_search_should_add_search_submenu', current_user_can( 'manage_options' ) );
    	}
    
    	/**
    	 * Remove `jetpack-search` submenu page
    	 */
    	protected function remove_search_submenu_if_exists() {
    

See this hook used in plugins: