<?

function remove_version_info() {

  return '';

  }

  add_filter('the_generator', 'remove_version_info');

  /*удалить версию в head*/

  remove_action('wp_head', 'wp_generator');

  /*удалить версию из rss*/

  add_filter('the_generator', '__return_empty_string');


  /**
   * Redirect to the homepage all users trying to access feeds.
   */
  function disable_feeds() {
  	wp_redirect( home_url() );
  	die;
  }

  // Disable global RSS, RDF & Atom feeds.
  add_action( 'do_feed',      'disable_feeds', -1 );
  add_action( 'do_feed_rdf',  'disable_feeds', -1 );
  add_action( 'do_feed_rss',  'disable_feeds', -1 );
  add_action( 'do_feed_rss2', 'disable_feeds', -1 );
  add_action( 'do_feed_atom', 'disable_feeds', -1 );

  add_action( 'do_feed_rss2_comments', 'disable_feeds', -1 );
  add_action( 'do_feed_atom_comments', 'disable_feeds', -1 );

  add_action( 'feed_links_show_posts_feed',    '__return_false', -1 );
  add_action( 'feed_links_show_comments_feed', '__return_false', -1 );
  
  remove_action( 'wp_head', 'feed_links',       2 );
  remove_action( 'wp_head', 'feed_links_extra', 3 );



  // Remove the word "heading" on the heading pages
  add_filter( 'get_the_archive_title', 'artabr_remove_name_cat' );
  function artabr_remove_name_cat( $title ){
  	if ( is_category() ) {
  		$title = single_cat_title( '', false );
  	} elseif ( is_tag() ) {
  		$title = single_tag_title( '', false );
  	}
  	return $title;
  }

  // Удаляем RSD, WLW ссылки, на главную, предыдущую, первую запись
  remove_action( 'wp_head', 'rsd_link' );
  remove_action( 'wp_head', 'wlwmanifest_link' );
  remove_action( 'wp_head', 'adjacent_posts_rel_link', 10, 0 );
  remove_action( 'wp_head', 'adjacent_posts_rel_link_wp_head', 10, 0 );
  remove_action( 'wp_head', 'index_rel_link' );
  remove_action( 'wp_head', 'start_post_rel_link', 10, 0 );
  remove_action( 'wp_head', 'parent_post_rel_link', 10, 0 );

?>
<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" href="//pkbasu.by/wp-content/plugins/wordpress-seo/css/main-sitemap.xsl"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
	<sitemap>
		<loc>https://pkbasu.by/post-sitemap.xml</loc>
		<lastmod>2023-09-25T14:46:47+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://pkbasu.by/page-sitemap.xml</loc>
		<lastmod>2026-04-15T16:01:13+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://pkbasu.by/ufaq-sitemap.xml</loc>
		<lastmod>2024-06-25T10:14:56+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://pkbasu.by/category-sitemap.xml</loc>
		<lastmod>2023-09-25T14:46:47+00:00</lastmod>
	</sitemap>
</sitemapindex>
<!-- XML Sitemap generated by Yoast SEO -->