• Resolved AndyHenderson

    (@andyhenderson)


    WordPress is adding an XML sitemap generator in core. I much prefer your plug-in – in particular its flexibility and the way I can control settings via a proper UI.

    Unfortunately, the core functionality is activated automatically in WordPress 5.5 and the only way I can see to prevent that happening is to execute this code:

    remove_action( 'init', 'wp_sitemaps_get_server' );

    Seems unreasonable that there’s no mechanism for people unwilling/unable to engage in code. I did object but got no response.

    Will you be releasing a new version of the plug-in that disables the WordPress version automatically?

    Andy Henderson

Viewing 5 replies - 1 through 5 (of 5 total)
  • Also, this code snippet works to disable the sitemap XML feature in WordPress 5.5.

    add_filter( 'wp_sitemaps_enabled', '__return_false' );

    Thread Starter AndyHenderson

    (@andyhenderson)

    According to this page: “Doing that will not remove the rewrite rules used for the sitemaps, as they are needed in order to send appropriate responses when sitemaps are disabled.”

    I read that as saying that the site will not return a sitemap at all. It certainly seems to offer the possibility of interference with sitemap plug-ins.

    This page linked from the one above says to use:

    remove_action( 'init', 'wp_sitemaps_get_server' );

    “to disable initialization of any sitemap functionality”.

    Clear as mud.

    Andy

    • This reply was modified 4 years, 3 months ago by AndyHenderson.
    Plugin Author Auctollo

    (@auctollo)

    @andyhenderson

    Great question!

    With the latest release of core sitemaps in WordPress 5.5, WordPress provides its users with a basic version of XML sitemaps. At this time, there are a few customization options for sitemaps. That’s why in our latest release of Google XML Sitemaps 4.1.1, we have disabled WordPress core sitemaps in order to allow our existing and new users to take advantage of our robust sitemap offering.

    If there any else we can help you with, please let us know.

    Thread Starter AndyHenderson

    (@andyhenderson)

    Great. I was hoping that you would do that.

    Andy

    Plugin Author Auctollo

    (@auctollo)

    Since the response above answers the question, we will move forward and mark this as resolved.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How will the plugin work with new WordPress Core function?’ is closed to new replies.