beans_reset_markup

Reset markup.

This function will automatically reset the opening and the closing HTML tag to its original value. If the markup is self-closed, the HTML tag will be reset accordingly.

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.

beans_reset_markup( string $id )

Return: (bool) Will always return true.

Parameters

NameTypeRequiredDefaultDescription
$idstringtrue-The markup ID.

Source

function beans_reset_markup( $id ) {

	remove_all_filters( $id . '_markup' );
	remove_all_filters( preg_replace( '#(\[|\])#', '', $id ) . '_markup' );

}