Skip to content
Status301 Premium

Premium WordPress Plugins and Support

Cart total: €0.00
Menu
  • WordPress plugins
  • Your Account
  • Support
    • Knowledge Base
    • Forums
    • Email support
  • Contact

Filter Hooks

xmlsf_news_stock_tickers

RavanH 9 October 20259 October 2025

Filters the news stock tickers array in Google News Advanced. Passes the stock tickers array and $post_id; must return an array. Used in xml-sitemap-feed-advanced-news/inc/class-main.php Parameters (2) Return The filter should return an array with stock tickers…

Continue reading →

Filter Hooks

xmlsf_index_archive_data

RavanH 15 March 202415 March 2024

Filters the post type sitemaps in XML Sitemap Index context when the sitemaps Server is set to Plugin. Used in xml-sitemap-feed/views/feed-sitemap.php Parameters (3) Return Must return an array of URL and lastmod date pairs. When…

Continue reading →

Filter Hooks

xmlsf_entry_url

RavanH 12 March 202415 March 2024

Filters the entry URL in XML Sitemap context when the sitemaps Server is set to Plugin. Used in xml-sitemap-feed/views/feed-sitemap-taxonomy.php Parameters (3) Return Must return a URL or false. Returning false will exclude the entry from…

Continue reading →

Filter Hooks

xmlsf_skip_user

RavanH 29 November 20231 December 2023

Filters the response when checking the author for exclusion flags in XML Sitemap context. Passes the user’s exclusion flag and $user; must return true or false. Used in xml-sitemap-feed/views/feed-sitemap-author.php Parameters (2) Return The filter should return…

Continue reading →

Filter Hooks

xmlsf_news_excluded

RavanH 21 April 202321 April 2023

Filters the response when checking the post for exclusion flags in Google News sitemap context. Passes the post exclusion flag and $post_id; must return true or false. Used in xml-sitemap-feed/views/feed-sitemap-news.php Parameters (2) Return The filter should…

Continue reading →

Filter Hooks

xmlsf_news_keywords

RavanH 7 April 20239 October 2025

Filters the news keywords array in Google News Advanced. Passes the keywords array and $post_id; must return an array. Used in xml-sitemap-feed-advanced-news/inc/class-main.php Parameters (2) Return The filter should return an array with keywords for the current…

Continue reading →

Filter Hooks

xmlsf_excluded

RavanH 22 February 202317 September 2023

Filters the response when checking the post for exclusion flags in XML Sitemap context. Passes the post exclusion flag and $post_id; must return true or false. Used in xml-sitemap-feed/views/feed-sitemap-posttype.php Parameters (2) Return The filter should return…

Continue reading →

Filter Hooks

xmlsf_news_language

RavanH 2 June 20222 June 2022

Filters the post language code used in the news sitemap. Passes additional variables $post_id and $post_type; Used in xml-sitemap-feed/views/feed-sitemap-news.php Parameters (3) $locale(string) Site language taken from get_bloginfo(‘language’) or from Polylang or WPML post data. Usually…

Continue reading →

Filter Hooks
Documentation
  • CoolClock
  • XML Sitemap & Google News
Support Forums
  • CoolClock Pro
  • XML Sitemap & Google News
Premium WordPress Plugins and Support - Status301 Premium © 2025