Echo open markup and attributes registered by ID.

The Beans HTML “markups” and “attributes” functions make it really easy to modify, replace, extend, remove or hook into registered markup or attributes.

The “data-markup-id” is added as a HTML attribute if the development mode is enabled. This makes it very easy to find the content ID when inspecting an element in a web browser.

Since this function uses beans_apply_filters(), the $id argument may contain sub-hook(s).

beans_open_markup_e( string $id, string|bool $tag, string|array $attributes = array() )

Return: (void)


$idstringtrue-A unique string used as a reference. The $id argument may contain sub-hooks(s).
$tagstring|booltrue-The HTML tag. If set to False or empty, the markup HTML tag will be removed but the actions hook will be called. If set the Null, both markup HTML tag and actions hooks will be removed.
$attributesstring|arrayfalsearray()Query string or array of attributes. The array key defines the attribute name and the array value defines the attribute value. Setting the array value to '' will display the attribute value as empty (e.g. class=""). Setting it to 'false' will only display the attribute name (e.g. data-example). Setting it to 'null' will not display anything.
$varmixedfalse-Additional variables passed to the functions hooked to $id.


function beans_open_markup_e( $id, $tag, $attributes = array() ) {

	echo call_user_func_array( 'beans_open_markup', func_get_args() );