Forums

[Plugin: GD Star Rating] Please add a filter for adjusting default options (1 post)

  1. Ben
    Member
    Posted 2 years ago #

    Hi,

    We're trying to use GD Star Rating on WPMU 2.8.2 and we'd like to adjust some of the plugin's default settings for our users. For example we want to disable the thumbs feature so that it's not shown for users when they create a new blog (the plugin is activated sitewide) but they can still enable it later if they wish to do so

    I think the easiest way of doing that would be if you added filters on the default values in code/defaults.php so we could then do something like this:

    function override_gdsr_defaults_default_options($defaults = array()) {
      $defaults['thumbs_active'] = 0;
      return $defaults;
    }
    add_filter('gdsr_defaults_default_options', 'override_gdsr_defaults_default_options');

    At the moment we've edited code/defaults.php directly which means we have to very careful not do loose our adjustments when we update the plugin to a newer version...

    Thanks,
    Ben

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.