Skip to content
Snippets Groups Projects

Disable Jetpack sitemaps

  • Clone with SSH
  • Clone with HTTPS
  • Embed
  • Share
    The snippet can be accessed without any authentication.
    Authored by Erick Hitter
    Edited
    jetpack-sitemaps-disable.php 203 B
    <?php
    function eth_jetpack_modules( $modules ) {
    	unset( $modules['sitemaps'] ); // Duplicates msm-sitemaps
    
    	return $modules;
    }
    add_filter( 'jetpack_get_available_modules', 'eth_jetpack_modules', 999 );
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Please register or to comment