Skip to content

Instantly share code, notes, and snippets.

@wpmark
Created January 6, 2015 20:38
Show Gist options
  • Save wpmark/e7e069ebd03330cf2abb to your computer and use it in GitHub Desktop.
Save wpmark/e7e069ebd03330cf2abb to your computer and use it in GitHub Desktop.
Overwrite the optionsframework_option_name function
<?php
/**
* function optionsframework_option_name()
*
* overwrites the function in the options framework which
* names the options value that stores all the options
*/
function optionsframework_option_name() {
/* get the options framework setting from options */
$optionsframework_settings = get_option( 'optionsframework' );
/* set the id element as our new theme options name */
$optionsframework_settings[ 'id' ] = 'wpmark_options';
/* save the optionsframework option setting */
update_option( 'optionsframework', $optionsframework_settings );
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment