WordPress at Your Fingertips
function is not described

WC_Tracks_Event::event_name_is_valid() public WC 1.0

Check if event name is valid.

{} It's a 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.

Code of WC_Tracks_Event::event_name_is_valid() WC 5.8.0

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