rss_update_frequency
Filters the RSS update frequency.
Использование
add_filter( 'rss_update_frequency', 'wp_kama_rss_update_frequency_filter' ); /** * Function for `rss_update_frequency` filter-hook. * * @param string $frequency An integer passed as a string representing the frequency of RSS updates within the update period. * * @return string */ function wp_kama_rss_update_frequency_filter( $frequency ){ // filter... return $frequency; }
- $frequency(строка)
- An integer passed as a string representing the frequency of RSS updates within the update period.
По умолчанию: '1'
Список изменений
С версии 2.1.0 | Введена. |
Где вызывается хук
В файле: /wp-includes/feed-rss2.php
wp-includes/feed-rss2.php 74
echo apply_filters( 'rss_update_frequency', $frequency );
wp-includes/feed-rdf.php 46
echo apply_filters( 'rss_update_frequency', '1' );
wp-includes/feed-rss2-comments.php 62
echo apply_filters( 'rss_update_frequency', '1' );