toggle menu

Pass paramter in add_action wp_head

Dhananjay Kumar |30 Nov at 08:11

add_action('wp_head', function($arguments) use ($dynamicStyleCss) {
$type_attr = current_theme_supports( 'html5', 'style' ) ? '' : ' type="text/css"';
 
echo '<style '.$type_attr.' id="wp-dynamic-custom-css">
'. strip_tags( $dynamicStyleCss ).'
</style> '
}, '10');

 

  • 0 like
  • 0 comment

Posted:

30 Nov at 08:11

Viewed:

712 times

Active:

30 Nov at 08:11