Skip to content

Instantly share code, notes, and snippets.

@mlbd
Last active February 13, 2016 19:49
Show Gist options
  • Save mlbd/7e72dc39e5596c2539da to your computer and use it in GitHub Desktop.
Save mlbd/7e72dc39e5596c2539da to your computer and use it in GitHub Desktop.
add_action('wp_head','wppu15_home_custom_remove_action',1);
function wppu15_home_custom_remove_action() {
if( is_front_page() || is_home() ) {
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