next_posts_link_attributes
Filters the anchor tag attributes for the next posts page link.
Использование
add_filter( 'next_posts_link_attributes', 'wp_kama_next_posts_link_attributes_filter' );
/**
* Function for `next_posts_link_attributes` filter-hook.
*
* @param string $attributes Attributes for the anchor tag.
*
* @return string
*/
function wp_kama_next_posts_link_attributes_filter( $attributes ){
// filter...
return $attributes;
}
- $attributes(строка)
- Attributes for the anchor tag.
Список изменений
| С версии 2.7.0 | Введена. |
Где вызывается хук
next_posts_link_attributes
wp-includes/link-template.php 2593
$attr = apply_filters( 'next_posts_link_attributes', '' );
Где используется хук в WordPress
wp-includes/blocks/comments-pagination-next.php 42
remove_filter( 'next_posts_link_attributes', $filter_link_attributes );
wp-includes/blocks/query-pagination-next.php 47
add_filter( 'next_posts_link_attributes', $filter_link_attributes );
wp-includes/blocks/query-pagination-next.php 55
remove_filter( 'next_posts_link_attributes', $filter_link_attributes );