Skip to content

Feature Request #4

Closed
Closed

Description

@simplethemes

Hi, I'd like to be able to import widget class settings via theme level.

Can you provide an example of how this might be done and still allow the user to modify the settings? Would you recommend attaching this to after_theme_setup? Thanks!

update_option( 'WCSSC_options', $options );

Activity

  1. JoryHogeveen commented on Jun 20, 2017

    @JoryHogeveen
    Collaborator

    Hi @simplethemes
    The next release will feature a new hook for this: widget_css_classes_set_settings.
    Within that hook you can overwrite the plugin settings on theme level.

    still allow the user to modify the settings

    This might be tricky. It will involve changing the default settings I suppose. I will think about how to do this and reply here.

  2. self-assigned this
    on Jun 20, 2017
  3. added this to the milestone on Jun 20, 2017
  4. added a commit that references this issue on Jun 20, 2017
  5. JoryHogeveen commented on Jun 20, 2017

    @JoryHogeveen
    Collaborator

    Default settings should indeed work for this. I've added the feature in #22
    Filter: widget_css_classes_default_settings

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions