Last active
October 10, 2023 11:51
-
-
Save Vitzkrieg/b1fe840688917aba0e5377c6f1f12a00 to your computer and use it in GitHub Desktop.
WordPress Option Name to Title Case
This file contains 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
// convert wp_option_name -> Wp Option Name | |
$titlecase = ucwords( implode(' ', explode('_', $option->option_name) ) ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment