Title: Filtering default options
Last modified: January 17, 2018

---

# Filtering default options

 *  [z-247](https://wordpress.org/support/users/z-247/)
 * (@z-247)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/filtering-default-options/)
 * I’m just setting up the plugin for the first time, and am having some problems
   setting the plugin defaults. As a starting point, I’ve copied and pasted your
   example set_accordion_shortcode_defaults code into functions.php, but it seems
   to have no effect. Starting a new accordion still leaves Open First unchecked,
   despite being included in the filter as true.
 * Sorry there’s no error code to report here, but are there any suggestions to 
   get this working?
 * Also, once I’ve got that first option working, should defaults for additional
   defaults be their own entries (ie, $atts[‘openfirst’] = true; $atts[‘scroll’]
   = true;) or should they somehow be combined in a single array ($atts[‘openfirst’,’
   scroll’] = true;)?
 * Thanks!

The topic ‘Filtering default options’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/accordion-shortcodes.svg)
 * [Accordion Shortcodes](https://wordpress.org/plugins/accordion-shortcodes/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/accordion-shortcodes/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/accordion-shortcodes/)
 * [Active Topics](https://wordpress.org/support/plugin/accordion-shortcodes/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/accordion-shortcodes/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/accordion-shortcodes/reviews/)

## Tags

 * [functions](https://wordpress.org/support/topic-tag/functions/)

 * 0 replies
 * 1 participant
 * Last reply from: [z-247](https://wordpress.org/support/users/z-247/)
 * Last activity: [8 years, 5 months ago](https://wordpress.org/support/topic/filtering-default-options/)
 * Status: not resolved