Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request #4

Closed
simplethemes opened this issue Feb 24, 2014 · 2 comments
Closed

Feature Request #4

simplethemes opened this issue Feb 24, 2014 · 2 comments
Assignees
Milestone

Comments

@simplethemes
Copy link

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 );

@JoryHogeveen
Copy link
Collaborator

JoryHogeveen commented Jun 20, 2017

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.

@JoryHogeveen JoryHogeveen self-assigned this Jun 20, 2017
@JoryHogeveen JoryHogeveen added this to the 1.4.1 milestone Jun 20, 2017
@JoryHogeveen JoryHogeveen mentioned this issue Jun 20, 2017
20 tasks
JoryHogeveen added a commit to JoryHogeveen/widget-css-classes that referenced this issue Jun 20, 2017
@JoryHogeveen
Copy link
Collaborator

JoryHogeveen commented Jun 20, 2017

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
Projects
None yet
Development

No branches or pull requests

2 participants