Inventory_Presser_Order_By_Widget::prettify_meta_key( string $key )

Crudely takes a post meta key, removes underscores, and converts the string to Title Case.


Parameters Parameters

$key

(string) (Required) The post meta key to prettify.


Top ↑

Return Return

(string)


Top ↑

Source Source

File: includes/widget/class-widget-order-by.php

	protected function prettify_meta_key( $key ) {
		return str_replace( '_', ' ', ucfirst( apply_filters( 'invp_unprefix_meta_key', $key ) ?? '' ) );
	}