Answer the question
In order to leave comments, you need to log in
Why doesn't buffering work in this case?
ob_start();
wp_enqueue_style( ... );
$element = ob_get_contents();
ob_clean();
$element
contain an empty string and doesn't catch the WordPress function wp_enqueue_style()
?
Answer the question
In order to leave comments, you need to log in
wp_enqueue_style()
Properly adds the stylesheet CSS file. Registers the style file if it has not already been registered.
...
Returns
null. Returns nothing.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question