Description
Namify the label so that it can be used for a CSS classNote: This doesn't cater for special characters which may not be valid for CSS class names
Usage
$string = bw_label_namify( $name );Parameters
- $name
- ( string ) required –
Returns
string a sanitized CSS nameSource
File name: oik-bob-bing-wide/shortcodes/oik-pricing-table.phpLines:
1 to 7 of 7
function bw_label_namify( $name ) { $name = trim( $name ); $name = str_replace( ' ', '_', $name ); $name = str_replace( '-', '_', $name ); $name = strtolower( $name ); return( $name ); }View on GitHub
Called by
1 to 1 of 1
Invoked by
Calls
Call hooks
API Letters:
