WC_Tracks_Event::event_name_is_valid()public staticWC 1.0

Check if event name is valid.

Method of the class: WC_Tracks_Event{}

No Hooks.

Return

false|Int.

Usage

$result = WC_Tracks_Event::event_name_is_valid( $name );
$name(string) (required)
Event name.

WC_Tracks_Event::event_name_is_valid() code WC 8.9.0

public static function event_name_is_valid( $name ) {
	return preg_match( self::EVENT_NAME_REGEX, $name );
}