Support » Plugin: Yoast SEO » How to include filter in functions.php so I do not lose change in the update?

  • Resolved adv_user

    (@adv_user)


    I changed it here (From true to false) – lines 71 and 175 – wordpress\wp-content\plugins\wordpress-seo\inc\sitemaps\class-taxonomy-sitemap-provider.php:

    
    /**
    * Filter the setting of excluding empty terms from the XML sitemap.
    *
    * @param boolean $exclude        Defaults to true.
    * @param array   $taxonomy_names Array of names for the taxonomies being processed.
    */
    $hide_empty = apply_filters( 'wpseo_sitemap_exclude_empty_terms', false, $taxonomy_names );
    
    $hide_empty = apply_filters( 'wpseo_sitemap_exclude_empty_terms', false, $taxonomy );

    But how do I add this in functions.php from my theme, so I do not miss this change in the next update of the plugin?

    • This topic was modified 2 years, 6 months ago by  adv_user.
Viewing 1 replies (of 1 total)
  • Plugin Support benvaassen

    (@benvaassen)

    Hi,

    We’re working on cleaning up these Yoast SEO support forums. Since your thread hasn’t had any activity in the last two weeks, we’ve marked it as resolved.

    Of course, you’re always welcome to open a new topic. We kindly ask you to read this post before doing so.

    Thanks for understanding!

Viewing 1 replies (of 1 total)
  • The topic ‘How to include filter in functions.php so I do not lose change in the update?’ is closed to new replies.