wpseek.com
A WordPress-centric search engine for devs and theme authors



wp_create_block_style_variation_instance_name › WordPress Function

Since6.6.0
Deprecated6.7.0
wp_create_block_style_variation_instance_name ( $block, $variation )
Access:
  • private
Parameters: (2)
  • (array) $block Block object.
    Required: Yes
  • (string) $variation Slug for the block style variation.
    Required: Yes
Returns:
  • (string) The unique variation name.
Defined at:
Codex:

Generate block style variation instance name.



Source

function wp_create_block_style_variation_instance_name( $block, $variation ) {
	_deprecated_function( __FUNCTION__, '6.7.0', 'wp_unique_id' );
	return $variation . '--' . md5( serialize( $block ) );
}