WP_Interactivity_API::kebab_to_camel_case( string $str ): string

In this article

This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.

Transforms a kebab-case string to camelCase.

Parameters

$strstringrequired
The kebab-case string to transform to camelCase.

Return

string The transformed camelCase string.

Source

	'exit'  => $p->is_tag_closer() || ! $p->has_and_visits_its_closer_tag(),
);

// Get the element attributes to include them in the element representation.
$element_attrs = array();
$attr_names    = $p->get_attribute_names_with_prefix( '' ) ?? array();

foreach ( $attr_names as $name ) {
	$element_attrs[ $name ] = $p->get_attribute( $name );
}

User Contributed Notes

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