How can we improve WooThemes?

Add index keys to $options array

If the theme options array had index keys, then specific options could be more easily unset/disabled via child themes using the woo_options_add ( $options ) function. Currently, I have to do some recursive array searching.

However, if the array was structured like so:

$options['alt-stylesheet'] = array( 'name' => __( 'Theme Stylesheet', 'woothemes' ),
'desc' => __( 'Select your themes alternative color scheme.', 'woothemes' ),
'id' => $shortname . '_alt_stylesheet',
'std' => 'default.css',
'type' => 'select',
'options' => $alt_stylesheets );

Then a child theme could unset this option simply

unset( $options['alt-stylesheet' ] );

This shouldn't have any back-compat issues either.

1 vote
Vote
Sign in
Check!
(thinking…)
Reset
or sign in with
  • facebook
  • google
    Password icon
    I agree to the terms of service
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    Kathy DarlingKathy Darling shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

    1 comment

    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      I agree to the terms of service
      Signed in as (Sign out)
      Submitting...

      Feedback and Knowledge Base