Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author philbuchanan

    (@philbuchanan)

    You definitely can. Add this to your theme.php file:

    add_filter('shortcode_atts_accordion', 'set_accordion_shortcode_defaults', 10, 3);
    function set_accordion_shortcode_defaults($atts) {
        // Override the openfirst setting here
        $atts['clicktoclose'] = true;
        return $atts;
    }

    It won’t actually appear checked in the UI, but should work on the actual site.

    Thread Starter natebeaty

    (@natebeaty)

    Perfect, thanks for the quick response!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Change defaults for options?’ is closed to new replies.