WordPress at Your Fingertips
function is not described


ExtendedContainer::is_anonymous_class() protected WC 1.0

Check if a class name corresponds to an anonymous class.

{} It's a method of the class: ExtendedContainer{}

No Hooks.


true|false. True if the name corresponds to an anonymous class.


// protected - for code of main (parent) or child class
$result = $this->is_anonymous_class( $class_name ): bool;
$class_name(string) (required)
The class name to check.

Code of ExtendedContainer::is_anonymous_class() WC 5.9.0

protected function is_anonymous_class( string $class_name ): bool {
	return StringUtil::starts_with( $class_name, 'class@anonymous' );