Introduction

  Edit This Page

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