- rtm_seo_media_priority
- rtm_seo_media_change_frequency
- rtm_seo_media_modification_date
- wpseo_sitemap_entries_per_page
description
Filter to modify priority of media in sitemap file.
add_filter('rtm_seo_media_priority', 'rtm_seo_media_priority', 10, 2 );
function rtm_seo_media_priority( $priority, $media_id ) {
return 0.8;
}
Filter to modify Changing frequency of media in sitemap file.
add_filter('rtm_seo_media_change_frequency', 'rtm_seo_media_change_frequency', 10, 2 );
function rtm_seo_media_change_frequency( $frequency, $media_id ) {
return 'weekly';
}
Filter to modify last modification tiime of media in sitemap file.
add_filter('rtm_seo_media_modification_date', 'rtm_seo_media_modification_date', 10, 2 );
function rtm_seo_media_modification_date( $date, $media_id ) {
// Code to change last modification tiime of media
return $date;
}
Filter to set maximum entries per of media in sitemap file.
add_filter('wpseo_sitemap_entries_per_page', 'filter_wpseo_sitemap_entries', 10, 2 );
function filter_wpseo_sitemap_entries( $date, $media_id ) {
// Code to set default maximum entries per sitemap to rtmedia-seo maximum sitemap entries
return 500;
}