wpseo_indexables_list_size
Filter wpseo_indexables_list_size Allow filtering the size of the Indexables lists.
Использование
add_filter( 'wpseo_indexables_list_size', 'wp_kama_wpseo_indexables_list_size_filter', 10, 2 ); /** * Function for `wpseo_indexables_list_size` filter-hook. * * @param int $list_size The size of the Indexables lists. * @param $string * * @return int */ function wp_kama_wpseo_indexables_list_size_filter( $list_size, $string ){ // filter... return $list_size; }
- $list_size(int)
- The size of the Indexables lists.
- $string
- -
Где вызывается хук
wpseo_indexables_list_size
yoast/src/deprecated/src/helpers/indexables-page-helper.php 78
return \apply_filters_deprecated( 'wpseo_indexables_list_size', [ self::LIST_SIZE ], 'Yoast SEO 20.4' );