Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter satwinderrathore

    (@satwinderrathore)

    You need to change the code from this

    apply_filters( 'testimonial_rotator_pre_widget_instance', $instance, $instance['rotator_id']);

    to

    $instance = apply_filters( 'testimonial_rotator_pre_widget_instance', $instance, $instance['rotator_id']);

    in plugin file testimonial-rotator.php.

    Then you need to add the follow

    add_filter( 'testimonial_rotator_pre_widget_instance', 'home_rotator_hide_title' );
    function home_rotator_hide_title( $instance, $id = {your-testimonial-rotator-id} ) {
      $instance['hide_title'] = true;
      return $instance;
    }

    to your current theme functions.php file

    Thread Starter satwinderrathore

    (@satwinderrathore)

    Thanks for reply @typotamer

    I just got the other solution here.

    apply_filters( 'testimonial_rotator_pre_widget_instance', $instance, $instance['rotator_id']);

    change to

    $instance = apply_filters( 'testimonial_rotator_pre_widget_instance', $instance, $instance['rotator_id']);

    and then apply the filter from your theme function file. 🙂

Viewing 2 replies - 1 through 2 (of 2 total)