How to add crossorigin and integrity to wp_register_style? (Font Awesome 5)
style_loader_tag style_loader_tag is an official WordPress API, see the documentation: https://developer.wordpress.org/reference/hooks/style_loader_tag/ apply_filters( ‘style_loader_tag’, $html, $handle, $href, $media )Filters the HTML link tag of an enqueued style. First enqueue your stylesheet, see documentation: https://developer.wordpress.org/reference/functions/wp_enqueue_style/ wp_enqueue_style( ‘font-awesome-5’, ‘https://use.fontawesome.com/releases/v5.5.0/css/all.css’, array(), null ); The $handle is ‘font-awesome-5’ I do null so that there is no version number. This way … Read more