You appear to be a bot. Output may be restricted
Description
Control the open/close tags for the search form label.
Ensure that the label open/close tags get disabled if the label has no content.
Usage
$string = genesis_markup_search_form_label_control( $tag, $args );
Parameters
- $tag
- ( string ) required – Existing tag for search form label element.
- $args
- ( array ) required – Markup arguments.
Returns
string Potentially modified tag for search form label element.
Source
File name: genesis/lib/functions/markup.php
Lines:
1 to 9 of 9
function genesis_markup_search_form_label_control( $tag, $args ) { if ( '' === $args['content'] ) { return ''; } return $tag; }