remove users from sitemap
-
I’d suggest you also hide the users page from the sitemap.
add_filter( 'wp_sitemaps_add_provider', function( $provider, $name ) { if ( $name === 'users' ) return NULL; return $provider; }, 10, 2 );
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘remove users from sitemap’ is closed to new replies.