WordPress filter hook
elementor/frontend/google_font_subsets
Defined by Elementor Agent Ready Website Builder and fired by 5 plugins in total, running on 10M+ sites between them.
“Google font subsets.”
How to use elementor/frontend/google_font_subsets
It's a filter: your callback receives the value, and must return the (changed) value.
Add this to your theme's functions.php or a small custom plugin:
add_filter( 'elementor/frontend/google_font_subsets', function( $subsets ) {
// Change $subsets here.
return $subsets;
}, 10, 1 );Argument names come from Elementor Agent Ready Website Builder's source. Other plugins may pass different values: check the call in the plugin you're targeting below.
5 plugins that fire elementor/frontend/google_font_subsets
Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.
-
Elementor Agent Ready Website Builder10+ million installs
apply_filters( 'elementor/frontend/google_font_subsets', $subsets )includes/frontend.php:992 -
Solid Testimonials1,000+ installs
apply_filters( 'elementor/frontend/google_font_subsets', $subsets )includes/shortcode-builder/shortcode_builder_fonts_loader.php:115 -
GS Books Showcase500+ installs
apply_filters( 'elementor/frontend/google_font_subsets', $subsets )includes/shortcode-builder/shortcode_builder_fonts_loader.php:115 -
GS Posts Grid100+ installs
apply_filters( 'elementor/frontend/google_font_subsets', $subsets )includes/shortcode-builder/shortcode_builder_fonts_loader.php:115 -
Solo Blocks10+ installs
apply_filters( 'elementor/frontend/google_font_subsets', $subsets )core/fonts/index.php:92
Need a customisation built on this hook?
Tell us what you want to change and which plugin it's for. We'll write it, test it and send it back as a small plugin.