Filter XML video sitemap query

Since SEOPress 2.9

function sp_sitemaps_video_query($args, $cpt_key) {
//Default Query  
//$args = array('post_type' => $cpt_key, 'post_status' => 'publish', 'ignore_sticky_posts' => true, 'posts_per_page' => 1000, 'meta_key' => '_seopress_robots_index', 'meta_value' => 'yes', 'meta_compare' => 'NOT EXISTS', 'order' => 'DESC', 'orderby' => 'modified', 'lang' => '');
//do your stuff
return $args;
}
add_filter('seopress_sitemaps_video_query', 'sp_sitemaps_video_query', 10, 2);

Last modified: June 5, 2018