Inventory_Presser_Order_By_Widget::prettify_meta_key( string $key )
prettify_meta_key
Contents
Description Description
Crudely takes a post meta key, removes underscores, and converts the string to Title Case.
Parameters Parameters
- $key
-
(string) (Required)
Return Return
(string)
Source Source
File: includes/widget/class-widget-order-by.php
function prettify_meta_key( $key ) { return str_replace( '_', ' ', ucfirst( apply_filters( 'invp_unprefix_meta_key', $key ) ) ); }
Expand full source code Collapse full source code View on Github