jetpack_search_custom_taxonomy_map

jetpack_search_custom_taxonomy_map

Appears in:
Hook Type: filter

See hook in core

Displaying hooks found in version: jetpack.15.9

apply_filters('jetpack_search_custom_taxonomy_map') is found 1 times:

  • /jetpack_vendor/automattic/jetpack-search/src/search-blocks/class-custom-taxonomy-slot-mapping.php line 101
    		 *
    		 * @param array<string, string> $map Empty by default; entries shape
    		 *                                   `[ 'user_slug' => 'jetpack-search-tagN' ]`.
    		 */
    		$raw = apply_filters( 'jetpack_search_custom_taxonomy_map', array() );
    		if ( ! is_array( $raw ) ) {
    			$msg = esc_html__( 'The jetpack_search_custom_taxonomy_map filter must return an array of user-slug => jetpack-search-tagN pairs.', 'jetpack-search-pkg' );
    			// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- $msg is esc_html__() output.
    			_doing_it_wrong( 'jetpack_search_custom_taxonomy_map', $msg, 'jetpack-search-pkg 0.60.0' );
    			self::$map_cache = array();
    			return self::$map_cache;