Last active
August 29, 2015 14:14
-
-
Save designbuildtest/dbf518509744e9565d44 to your computer and use it in GitHub Desktop.
Creating a dynamically named / namespaced 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
| function mytheme_get_color_schemes() { | |
| $industry = get_option( 'mytheme_industry', 'construction' ); | |
| $function_name = 'mytheme_' . $industry . '_get_color_schemes'; | |
| return $function_name(); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment