Created
February 13, 2016 19:55
-
-
Save mlbd/675b9e49209b97a123b9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_action('wp_head','wppu15_archive_custom_remove_action',1); | |
function wppu15_archive_custom_remove_action() { | |
// please change product or service name if your post has different name | |
// this script will disable wppu preloader on your disable archive pages | |
if( is_post_type_archive( array('product', 'service') ) ) { | |
remove_action( 'wp_footer', 'wppu_awesome_option_script_init' ); | |
remove_action( 'wp_enqueue_scripts', 'wppu_awesome_css_options_files' ); | |
remove_action( 'wp_head', 'wppu_awesome_css_options_markup_frontedn' ); | |
remove_action( 'wp_enqueue_scripts', 'wppu_pace_jquery_options_active_script_style' ); | |
remove_action( 'wp_head', 'wppu_pace_style_add__frontend' ); | |
remove_action( 'wp_head', 'wppu_pace_markup_add__frontend' ); | |
remove_action( 'wp_head', 'custom_preloader_options_markup_js__forntend' ); | |
remove_action( 'wp_head', 'custom_preloader_options_css__forntend' ); | |
remove_action( 'wp_head', 'wppu_special_options_markup_frontend' ); | |
remove_action( 'wp_enqueue_scripts', 'wppu_css_options_active_script_style' ); | |
remove_action('wp_head', 'wppu_cssOptions_preload_css'); | |
remove_action('wp_head', 'wppu_addData_cssOptions__to_frontend'); | |
remove_action('wp_head', 'wppu_addData_defaul__to_frontend'); | |
remove_action('wp_head', 'wppu_default_preload_css'); | |
remove_action('wp_footer', 'wppu_default_image_option_script_init'); | |
remove_action('wp_footer', 'wppu_css_option_script_init'); | |
remove_action('wp_footer', 'wppu_special_option_script_init'); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment