feed_links_show_posts_feed
Filters whether to display the posts feed link.
Использование
add_filter( 'feed_links_show_posts_feed', 'wp_kama_feed_links_show_posts_filter' ); /** * Function for `feed_links_show_posts_feed` filter-hook. * * @param bool $show Whether to display the posts feed link. * * @return bool */ function wp_kama_feed_links_show_posts_filter( $show ){ // filter... return $show; }
- $show(true|false)
- Whether to display the posts feed link.
По умолчанию: true
Список изменений
С версии 4.4.0 | Введена. |
Где вызывается хук
wp-includes/general-template.php 3138
if ( apply_filters( 'feed_links_show_posts_feed', true ) ) {