Filters

description

  • rtm_seo_media_priority


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;
}
  • rtm_seo_media_change_frequency


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';
}
  • rtm_seo_media_modification_date


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;
}
  • wpseo_sitemap_entries_per_page


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;
}