Modify widget dropdown label.
beans_remove_widget_dropdown_label( string $content )
Return: (string) The modified widget content.
Parameters
Name | Type | Required | Default | Description |
---|---|---|---|---|
$content | string | true | - | The widget content. |
Source
function beans_remove_widget_dropdown_label( $content ) {
return preg_replace( '#<label([^>]*)class="screen-reader-text"(.*?)>(.*?)</label>#', '', $content );
}