Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save bdeleasa/cf350c7935d943e8929b1d057dad9f59 to your computer and use it in GitHub Desktop.
Save bdeleasa/cf350c7935d943e8929b1d057dad9f59 to your computer and use it in GitHub Desktop.
Functions for dequeueing unneeded scripts and styles outputted by the Easy Testimonials plugin.
<?php
add_action( 'wp_enqueue_scripts', 'themename_dequeue_easy_testimonials_style', 999 );
/**
* Removes the Easy Testimonials CSS style because we're styling the testimonials
* in our stylesheet.
*
* @since 1.0.0
*
* @param none
* @return none
*/
function themename_dequeue_easy_testimonials_style() {
wp_dequeue_style( 'easy_testimonial_style' );
}
add_filter( 'wp_footer', 'themename_dequeue_easy_testimonials_cycle_scripts' );
/**
* Only show posts that have a featured image in the Ultimate Posts widget.
*
* @since 1.0.0
*
* @param $args
* @return mixed
*/
function themename_dequeue_easy_testimonials_cycle_scripts() {
wp_dequeue_script( 'gp_cycle2' );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment