Last active
January 3, 2021 10:58
-
-
Save gvgvgvijayan/7563dc984bb8dd09bcbdb56f0826c5b0 to your computer and use it in GitHub Desktop.
This gist is used in the tutorial https://www.vijayan.in/how-to-create-custom-table-list-in-wordpress-admin-page
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
<?php | |
... | |
/** | |
* Convert slug string to human readable. | |
* | |
* @param string $title String to transform human readable. | |
* | |
* @return string Human readable of the input string. | |
*/ | |
private function human_readable( $title ) { | |
return ucwords( str_replace( '_', ' ', $title ) ); | |
} | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment