wp_search_stopwords │ хук-фильтр │ WC 1.0

Это хук WordPress - wp_search_stopwords. Плагин его просто использует.

Filters stopwords used when parsing search terms.

Использование

add_filter( 'wp_search_stopwords', 'wp_kama_search_stopwords_filter' );

/**
 * Function for `wp_search_stopwords` filter-hook.
 * 
 * @param string[] $stopwords Array of stopwords.
 *
 * @return string[]
 */
function wp_kama_search_stopwords_filter( $stopwords ){
	// filter...
	return $stopwords;
}
$stopwords(string[])
Array of stopwords.

Где вызывается хук

WC_Data_Store_WP::get_search_stopwords()
wp_search_stopwords
WC_Admin_List_Table_Products::get_search_stopwords()
wp_search_stopwords
woocommerce/includes/data-stores/class-wc-data-store-wp.php 625
return apply_filters( 'wp_search_stopwords', $stopwords );
woocommerce/includes/admin/list-tables/class-wc-admin-list-table-products.php 974
$filtered_stopwords = apply_filters( 'wp_search_stopwords', $stopwords ); // phpcs:ignore WooCommerce.Commenting.CommentHooks.MissingSinceComment -- The hook is documented by WordPress.

Где используется хук в WooCommerce

Использование не найдено.