registered['jquery'] ) ) { // $script = $scripts->registered['jquery']; // if ( $script->deps ) { // $script->deps = array_diff ( $script->deps, array( // 'jquery-migrate' // )); // } // } // } // add_action( 'wp_default_scripts', 'remove_jquery_migrate' ); // Remove file type attribute function wgfitt_remove_type_attr($tag, $handle){ return preg_replace( "/type=['\"]text\/(javascript|css)['\"]/", '', $tag ); } add_filter('style_loader_tag', 'wgfitt_remove_type_attr', 10, 2); add_filter('script_loader_tag', 'wgfitt_remove_type_attr', 10, 2); // Remove query string from static files function remove_query_strings() { if(!is_admin()) { add_filter('script_loader_src', 'remove_query_strings_split', 15); add_filter('style_loader_src', 'remove_query_strings_split', 15); } } function remove_query_strings_split($src){ $output = preg_split("/(&ver|\?ver)/", $src); return $output[0]; } add_action('init', 'remove_query_strings'); function wgfitt_remove_version(){ return ''; } add_filter( 'the_generator', 'wgfitt_remove_version' ); // Defer specific js files for speed optimazation function wgfitt_defer_scripts($tag, $handle, $src){ $defer = array( 'wp-block-library', 'wgfitt_main', 'wgfitt_fontawesome' ); if (in_array($handle, $defer)){ return '' . "\n"; } return $tag; } add_filter('script_loader_tag', 'wgfitt_defer_scripts', 10, 3); // Remove the useless WP header links function wgfitt_remove_head_links(){ remove_action( 'wp_head', 'red_link' ); remove_action( 'wp_head', 'wlwmanifest_link' ); remove_action( 'wp_head', 'wp_shortlink_wp_head', 10); remove_action( 'wp_head', 'rest_oembed_add_discovery_links', 10); remove_action( 'template_redirect', 'rest_output_link_header', 10); } add_action( 'init', 'wgfitt_remove_head_links' ); // Remove the useless emoji styles function disable_emojis(){ remove_action('wp_head', 'print_emoji_detection_script', 7); remove_action('admin_print_scripts', 'print_emoji_detection_script'); remove_action('wp_print_styles', 'print_emoji_styles'); remove_action('the_content_feed', 'wp_staticize_emoji'); remove_action('comment_text_rss', 'wp_staticize_emoji'); remove_action('wp_mail', 'wp_staticize_emoji_for_email'); remove_action('tiny_mce_plugins', 'disable_emojis_tinymce'); remove_action('wp_resource_hints', 'disable_emojis_remove_dns_prefetch',10, 2); } add_action( 'init', 'disable_emojis' ); // Remove the wp embed function deregister_wp_embed(){ wp_deregister_script( 'wp-embed' ); } add_action( 'wp_footer', 'deregister_wp_embed' ); // Temp function to find js handle names // function wgfitt_print_scripts_styles() { // Print all loaded Scripts // global $wp_scripts; // foreach( $wp_scripts->queue as $script ) : // echo $script . ' ** '; // endforeach; // } // add_action( 'wp_print_scripts', 'wgfitt_print_scripts_styles' ); // Register some menus function register_menus(){ register_nav_menus( array( 'top-menu-right' => 'Top Menu Right', 'main-menu' => 'Main Navigation Menu' ) ); } add_action( 'init', 'register_menus' );

Professionally Fitted Carpets & Flooring Specialist.

Hi and welcome to my website, my name is Wesley and I am a professional carpet fitter and flooring specalist from Tamworth but cover the whole of the West Midlands as well as further afield.

WG Fitting Service have over fourty years of combigned experience and knowledge in the flooring and carpet trade, what I do not know about carpets and flooring just is not worth knowing.