Skip to content

Instantly share code, notes, and snippets.

@shazdeh
Created November 3, 2013 10:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shazdeh/7288662 to your computer and use it in GitHub Desktop.
Save shazdeh/7288662 to your computer and use it in GitHub Desktop.
Filtering options in a Themify theme. The $options variable is an array of saved options.
<?php
$theme = wp_get_theme();
function filter_theme_options( $options ) {
return $options;
}
add_filter( 'option_' . $theme->display('Name') . '_themify_data', 'filter_theme_options' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment