Title: [Plugin: WP Native Dashboard] default options
Last modified: August 20, 2016

---

# [Plugin: WP Native Dashboard] default options

 *  Resolved [radky](https://wordpress.org/support/users/radky/)
 * (@radky)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-wp-native-dashboard-default-options/)
 * Hello
    wonder can it be done plugin, I use it as a WPMU, have included default
   options
 * [http://wordpress.org/extend/plugins/wp-native-dashboard/](http://wordpress.org/extend/plugins/wp-native-dashboard/)

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

 *  Plugin Author [codestyling](https://wordpress.org/support/users/codestyling/)
 * (@codestyling)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/plugin-wp-native-dashboard-default-options/#post-2932783)
 * I can’t understand the issue, please describe it more in detail.
 *  [Christian Foellmann](https://wordpress.org/support/users/cfoellmann/)
 * (@cfoellmann)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/plugin-wp-native-dashboard-default-options/#post-2932789)
 * I think I understand:
 * You want to set/change the default settings after this comment `//options defaults`
   in the wp-native-dashboard.php for new created sites. These settings would be
   accessible via the network administration
 * +1 on that. Could be implemented with my feature request: [http://wordpress.org/support/topic/multisite-features-2?replies=1](http://wordpress.org/support/topic/multisite-features-2?replies=1)
 *  Plugin Author [codestyling](https://wordpress.org/support/users/codestyling/)
 * (@codestyling)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/plugin-wp-native-dashboard-default-options/#post-2932790)
 * No extension required, use build in filters within your own multisite must use
   plugin for this purpose:
 * `apply_filters( 'default_option_' . $option, $default );`
 * in this case it will look like:
 *     ```
       function my_defaults($default) {
          //patch here the StdClass members
          return $default;
       }
       add_filter( 'default_option_wp-native-dashboard', 'my_defaults' );
       ```
   
 * will only be called, if the option was not at the database.
 *  [Christian Foellmann](https://wordpress.org/support/users/cfoellmann/)
 * (@cfoellmann)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/plugin-wp-native-dashboard-default-options/#post-2932792)
 * I have a network-wide activated custom plugin for my “hacks” but can not get 
   your tip to work:
 *     ```
       function wp_nd_defaults($default) {
   
           $default = array(   "version"                        => '1.0',
                               "installed"                      => false,
                               "enable_login_selector"          => true,
                               "enable_login_custom"            => true,
                               "enable_profile_extension"       => true,
                               "enable_language_switcher"       => false,
                               "enable_adminbar_switcher"       => false,
                               "enable_locale_abbreviations"    => false,
                               "translate_front_adminbar"       => true,
                               "cleanup_on_deactivate"          => false
           );
   
          return $default;
       }
       add_filter( 'default_option_wp-native-dashboard', 'wp_nd_defaults' );
       ```
   
 * ???
 * When added the activation of WP Native Dashboard goes horribly wrong.
 *  [jazbek](https://wordpress.org/support/users/jazbek/)
 * (@jazbek)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/plugin-wp-native-dashboard-default-options/#post-2932800)
 * I think you need to return $default as an object, not an array.

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

The topic ‘[Plugin: WP Native Dashboard] default options’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-native-dashboard_d8d8d8.svg)
 * [WP Native Dashboard](https://wordpress.org/plugins/wp-native-dashboard/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-native-dashboard/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-native-dashboard/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-native-dashboard/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-native-dashboard/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-native-dashboard/reviews/)

 * 5 replies
 * 4 participants
 * Last reply from: [jazbek](https://wordpress.org/support/users/jazbek/)
 * Last activity: [12 years, 11 months ago](https://wordpress.org/support/topic/plugin-wp-native-dashboard-default-options/#post-2932800)
 * Status: resolved