You appear to be a bot. Output may be restricted
Description
Convert a field name to a title
Usage
$string = bw_titleify( $name );
Parameters
- $name
- ( string ) required – field name e.g. _cc_custom_category
- $name
- ( string ) required – field name to titleify
Returns
string $title – title returned e.g. Cc Custom Category Converts underscores to blanks, trims and uppercases first letter of each word DOES NOT remove a prefix that may match the post_type's slug So the field title may be quite long.Source
File name: oik/includes/bw_register.phpLines:
1 to 6 of 6
function bw_titleify( $name ) { $title = str_replace( "_", " ", $name ); $title = trim( $title ); $title = ucwords( $title ); return( $title ); }View on GitHub View on Trac