This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function __construct() { | |
add_action( 'init', [ $this, 'set_font_display_swap' ] ); | |
} | |
/** | |
* Set font-display to swap for all loaded fonts. | |
* | |
* @return array Modified font data with font-display set. | |
*/ | |
public function set_font_display_swap() { |