• Resolved mcdeth

    (@mcdeth)


    Hi. I automatically generate some pages from filters. Since they aren’t saved in database, I add linkto sitemap with

    add_action( 'rank_math/sitemap/page_content', function() {

    I’m not really a coder, but script is checking in 30 categories if there are products with specific attribute and then echo. for example attribute size has values XL, M, L. category men tshirt has only XL and L size, category women M and L. So I add to sitemap links to men XL and L, for women only M and L. this is bit long code and lot’s of categories so I kinda worry I’ll slow down the website. I was curious how often is this action used?

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘how often is sitemap action called?’ is closed to new replies.