wp_sitemaps_taxonomies_pre_url_list хук-фильтр . WP 5.5.0
Filters the taxonomies URL list before it is generated.
Passing a non-null value will effectively short-circuit the generation, returning that value instead.
Использование
add_filter( 'wp_sitemaps_taxonomies_pre_url_list', 'filter_function_name_3561', 10, 3 ); function filter_function_name_3561( $url_list, $taxonomy, $page_num ){ // filter... return $url_list; }
- $url_list(массив)
- The URL list.
По умолчанию: null - $taxonomy(строка)
- Taxonomy name.
- $page_num(число)
- Page of results.
Список изменений
С версии 5.5.0 | Введена. |
Где вызывается хук
wp_sitemaps_taxonomies_pre_url_list
wp-includes/sitemaps/providers/class-wp-sitemaps-taxonomies.php 79-84
$url_list = apply_filters( 'wp_sitemaps_taxonomies_pre_url_list', null, $taxonomy, $page_num );