WC_Tracks_Event::event_name_is_valid( string $name )

Check if event name is valid.


Description Description


Parameters Parameters

$name

(Required) Event name.


Top ↑

Return Return

(false|int)


Top ↑

Source Source

File: includes/tracks/class-wc-tracks-event.php

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


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.