wp_print_font_faces_from_style_variations()
Generates and prints font-face styles defined the the theme style variations.
No Hooks.
Returns
null
. Nothing (null).
Usage
wp_print_font_faces_from_style_variations();
Changelog
Since 6.7.0 | Introduced. |
wp_print_font_faces_from_style_variations() wp print font faces from style variations code WP 6.8.1
function wp_print_font_faces_from_style_variations() { $fonts = WP_Font_Face_Resolver::get_fonts_from_style_variations(); if ( empty( $fonts ) ) { return; } wp_print_font_faces( $fonts ); }