We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
As an admin, I want to apply preload fonts to other font file type using filter
Acceptance Criteria
The text was updated successfully, but these errors were encountered:
⚠ This grooming is based on #7302
In
wp-rocket/inc/Engine/Media/PreloadFonts/Frontend/Controller.php
Line 66 in 66e41dc
We can add the following:
$processed_extensions = [ 'woff2', 'woff', 'ttf', ]; /** * Filters the list of processed font extensions. * * @param array $processed_extensions Array of processed font extensions. */ wpm_apply_filters_typed( 'array', 'rocket_preload_fonts_processed_extensions', $processed_extensions ); $data[ 'processed_extensions' ] = $processed_extensions;
So it will be given to rocket_beacon_data JS variable so it could be picked up by the beacon script.
rocket_beacon_data
Sorry, something went wrong.
Miraeld
No branches or pull requests
User Story
As an admin, I want to apply preload fonts to other font file type using filter
Acceptance Criteria
The text was updated successfully, but these errors were encountered: