Ļauj pievienot papildus atribūtus html elementam nepārrakstot template-parts/head.php failu.
Izmantošana:
function pdgc_custom_html_attributes( $atts ) {
$atts['class'] = 'site-html';
$atts['id'] = 'site-html';
$atts['data-custom-att'] = 'custom-value';
return $atts;
}
add_filter( 'pdg_html_attributes', 'pdgc_custom_html_attributes' );