Capture all the wp_head content
add_action( 'wp_head', function(){
ob_start();
}, 0);
Replace endings and output results
add_action( 'wp_head', function(){
$head = ob_get_clean();
echo str_replace('/>', '>', $head);
}, 99999);
Capture all the wp_head content
add_action( 'wp_head', function(){
ob_start();
}, 0);
Replace endings and output results
add_action( 'wp_head', function(){
$head = ob_get_clean();
echo str_replace('/>', '>', $head);
}, 99999);