You appear to be a bot. Output may be restricted
Description
Create a field label given the key nameSimilar to bw_titleify()
Usage
$string = bw_label_from_key( $key );
Parameters
- $key
- ( string ) required – the field name e.g. yoast_wpseo_title
Returns
string the invented label e.g. Yoast Wpseo TitleSource
File name: oik/libs/bw_fields.phpLines:
1 to 6 of 6
function bw_label_from_key( $key ) { $label = str_replace( "_", " ", $key ); $label = trim( $label ); $label = ucwords( $label ); return( $label ); }View on GitHub View on Trac