/home/bdqbpbxa/rc-subdomains/brnr-rc.goodface.com.ua/wp-content/themes/burner/inc/setup.php
<?php
add_filter('show_admin_bar', '__return_false');
// Remove Wordpress version
remove_action('wp_head', 'wp_generator');
// Remove Feed links
remove_action('wp_head', 'feed_links', 2);
remove_action('wp_head', 'feed_links_extra', 3);
// Remove emoji
remove_action('wp_head', 'print_emoji_detection_script', 7);
remove_action('wp_print_styles', 'print_emoji_styles');
remove_action('admin_print_scripts', 'print_emoji_detection_script');
remove_action('admin_print_styles', 'print_emoji_styles');
remove_action('wp_head', 'rsd_link');
//Remove the rest_output_link_header
remove_action('wp_head', 'rest_output_link_wp_head');
remove_action('template_redirect', 'rest_output_link_header', 11, 0);
remove_action('wp_head', 'wp_oembed_add_discovery_links');
// Remove link for user editing
remove_action('wp_head', 'wlwmanifest_link');
// Remove shortlink
remove_action('wp_head', 'wp_shortlink_wp_head');
// remove dashicons
function rw_dequeue_dashicon()
{
if (is_user_logged_in()) {
return;
} else {
wp_deregister_style('dashicons');
}
}
add_action('wp_enqueue_scripts', 'rw_dequeue_dashicon');
// Disabble RSS
function wpb_disable_feed()
{
wp_die(__('No feed available, please visit our <a href="' . get_bloginfo('url') . '">homepage</a>!'));
}
add_action('do_feed_rss2_comments', 'wpb_disable_feed', 10, 2);
add_action('do_feed_atom_comments', 'wpb_disable_feed', 10, 2);
remove_action('wp_head', 'wp_resource_hints', 2);
// Disallow feed
function rostwirt_disable_feed()
{
wp_redirect(get_option('siteurl'));
}
add_action('do_feed', 'rostwirt_disable_feed', 1);
add_action('do_feed_rdf', 'rostwirt_disable_feed', 1);
add_action('do_feed_rss', 'rostwirt_disable_feed', 1);
add_action('do_feed_rss2', 'rostwirt_disable_feed', 1);
add_action('do_feed_atom', 'rostwirt_disable_feed', 1);
remove_action('wp_head', 'feed_links_extra', 3);
remove_action('wp_head', 'feed_links', 2);
// Remove link for editing using outer services
remove_action('wp_head', 'rsd_link');
// Deregister embed
function rw_deregister_embed()
{
wp_deregister_script('wp-embed');
}
add_action('wp_footer', 'rw_deregister_embed');
function custom_dequeue()
{
wp_dequeue_style('thickbox');
wp_dequeue_style('wp-block-library');
}
add_action('wp_enqueue_scripts', 'custom_dequeue', 9999);
add_action('wp_head', 'custom_dequeue', 9999);