Answers for "wp_dequeue_style"

PHP
1

wp_dequeue_style

add_action( 'wp_enqueue_scripts', function() {
  if (! is_front_page()) { // allow widget style only in front page
      wp_dequeue_style('fpw_styles_css');
  }
});
Posted by: Guest on February-25-2021

Browse Popular Code Answers by Language