wpseo_indexables_buffer_size
Filter wpseo_indexables_buffer_size Allow filtering the size of the buffer for the Indexables lists, in terms of how many times bigger it is from the lists' size.
Использование
add_filter( 'wpseo_indexables_buffer_size', 'wp_kama_wpseo_indexables_buffer_size_filter', 10, 2 ); /** * Function for `wpseo_indexables_buffer_size` filter-hook. * * @param int $buffer_size The size of the buffer for the Indexables lists, in terms of how many times bigger it is from the lists' size. * @param $string * * @return int */ function wp_kama_wpseo_indexables_buffer_size_filter( $buffer_size, $string ){ // filter... return $buffer_size; }
- $buffer_size(int)
- The size of the buffer for the Indexables lists, in terms of how many times bigger it is from the lists' size.
- $string
- -
Где вызывается хук
wpseo_indexables_buffer_size
yoast/src/deprecated/src/helpers/indexables-page-helper.php 97
$times = \apply_filters_deprecated( 'wpseo_indexables_buffer_size', [ self::BUFFER_SIZE ], 'Yoast SEO 20.4' );