Created
January 6, 2015 20:38
-
-
Save wpmark/e7e069ebd03330cf2abb to your computer and use it in GitHub Desktop.
Overwrite the optionsframework_option_name function
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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