beans_remove_widget_dropdown_label

Modify widget dropdown label.

beans_remove_widget_dropdown_label( string $content )

Return: (string) The modified widget content.

Parameters

NameTypeRequiredDefaultDescription
$contentstringtrue-The widget content.

Source

function beans_remove_widget_dropdown_label( $content ) {

	return preg_replace( '#<label([^>]*)class="screen-reader-text"(.*?)>(.*?)</label>#', '', $content );

}