WC_Tracks_Event::prop_name_is_valid()
Check if a property name is valid.
Method of the class: WC_Tracks_Event{}
No Hooks.
Return
false|Int
.
Usage
$result = WC_Tracks_Event::prop_name_is_valid( $name );
- $name(string) (required)
- Event property.
WC_Tracks_Event::prop_name_is_valid() WC Tracks Event::prop name is valid code WC 9.2.3
public static function prop_name_is_valid( $name ) { return preg_match( self::PROP_NAME_REGEX, $name ); }