Advertisement
fauzanjeg

JNEWS || Remove Dashicons

Jul 27th, 2022
1,104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.37 KB | None | 0 0
  1. /** Remove Dashicons from Admin Bar for non logged in users **/
  2. function jnews_remove_dashicons() {
  3.     if ( ! is_admin_bar_showing() && ! is_customize_preview() ) {
  4.         wp_dequeue_style( 'dashicons' );
  5.         wp_deregister_style( 'dashicons' );
  6.     }
  7. }
  8. /** Remove Dashicons from Admin Bar for non logged in users */
  9. add_action( 'wp_print_styles', 'jnews_remove_dashicons', 100 );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement