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

$existing_directives_prefixes = array_intersect(
	'enter' === $mode ? $directive_processor_prefixes : $directive_processor_prefixes_reversed,
	$directives_prefixes
);
foreach ( $existing_directives_prefixes as $directive_prefix ) {
	$func = is_array( self::$directive_processors[ $directive_prefix ] )
		? self::$directive_processors[ $directive_prefix ]
		: array( $this, self::$directive_processors[ $directive_prefix ] );

	call_user_func_array( $func, array( $p, $mode, &$tag_stack ) );
}

User Contributed Notes

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