wpseo_post_types_reset_permalinks хук-фильтр . Yoast 1.0
Filter: Gives the possibility to filter out post types.
Использование
add_filter( 'wpseo_post_types_reset_permalinks', 'filter_function_name_2979' ); function filter_function_name_2979( $post_types ){ // filter... return $post_types; }
- $post_types(массив)
- The post type names.
Где вызывается хук
wpseo_post_types_reset_permalinks
yoast/src/integrations/watchers/indexable-permalink-watcher.php 224
$post_types = \apply_filters( 'wpseo_post_types_reset_permalinks', $this->post_type->get_public_post_types() );
Где используется хук в ядре Yoast SEO
yoast/src/integrations/third-party/woocommerce-permalinks.php 46
\add_filter( 'wpseo_post_types_reset_permalinks', [ $this, 'filter_product_from_post_types' ] );