aioseop_video_sitemap_scan_posts_limit (Pro Feature)

Need help with this?
Purchase All in One SEO Pack Pro to get dedicated support from us.

Buy Now

The aioseop_video_sitemap_scan_posts_limit filter hook.

Description

$scan_posts_limit = apply_filters( 'aioseop_video_sitemap_scan_posts_limit', 20 );

This filter can be used to change the amount of posts that are scanned for videos during each partial scan of the Video Sitemap module.

The default amount of posts per scan is 20. If you were to increase the amount of posts per partial scan, the Video Sitemap would be able to generate your video sitemap more quickly (useful for large sites with thousands of posts), but this is at the risk of your site’s performance and stability. The same applies vice versa.


Parameters (1)

0. (int)
the amount of posts that are scanned for videos during each partial scan.

Usage

The code example below can be used to change the amount of posts:

add_filter( 'aioseop_video_sitemap_scan_posts_limit', 'change_posts_limit' );

function change_posts_limit( $amount_of_posts ) {
        $amount_of_posts = 100;
        return $amount_of_posts;
}

Defined (1)

The filter is defined in the following location(s).

pro/video_sitemap.php (1 occurrence)
  • Was this helpful ?
  • YesNo