Articles on: Developers

Add additional URLs to preload

FlyingPress fetches URLs to preload automatically; this includes posts, pages, custom posts, and taxonomies (category, tags etc.).

If you've URLs that are not in this list but should be preloaded, you can use the filter flying_press_preload_urls like below:

add_filter('flying_press_preload_urls', function ($urls) {
  $urls[] = 'https://example.com/your-page/';
  $urls[] = 'https://example.com/another-page/';
  $urls[] = 'https://example.com/yet-another-page/';
  return $urls;
});

Updated on: 23/11/2023

Was this article helpful?

Share your feedback

Cancel

Thank you!