INVP::untranslate_custom_field_names( string $meta_key )
Removes the prefix from our post meta field keys so ‘inventory_presser_make’ becomes ‘make’. Careful to not damage any provided key that does not start with our prefix.
On This Page
Parameters Parameters
- $meta_key
-
(string) (Required) The prefixed meta key.
Return Return
(string) The un-prefixed meta key.
Source Source
File: includes/class-invp.php
}
return $prefix . $nice_name;
}
/**
* Removes the prefix from our post meta field keys so
* 'inventory_presser_make' becomes 'make'. Careful to not damage any
* provided key that does not start with our prefix.
*
* @param string $meta_key The prefixed meta key.
* @return string The un-prefixed meta key.
*/
public static function untranslate_custom_field_names( $meta_key ) {
if ( empty( $meta_key ) ) {
return '';
}
Expand full source codeCollapse full source codeView on Github