Filter
rpress_checkout_fonts_url
On this page
Filters the Google Fonts stylesheet URL used by the menu, order tracking and checkout styles.
Applied before the rpress-checkout-fonts stylesheet is enqueued. The default loads Inter and Poppins from Google Fonts. Return an empty value to stop the font stylesheet from loading, for example to self-host the fonts or for privacy reasons.
Parameters#
| Parameter | Type | Description |
|---|---|---|
$fonts_url | string | Fonts stylesheet URL. |
Return value#
string. The fonts URL, or an empty string to disable it.
Example#
function my_disable_checkout_fonts( $fonts_url ) {
return '';
}
add_filter( 'rpress_checkout_fonts_url', 'my_disable_checkout_fonts' );
Notes#
Fired from three places (menu, order tracking and checkout style loaders) with the same argument. They share the rpress-checkout-fonts handle.
Source#
Applied in:
includes/class-rpress-frontend-scripts.php(line 683), inRP_Frontend_Scripts::enqueue_menu_styles()includes/class-rpress-frontend-scripts.php(line 797), inRP_Frontend_Scripts::enqueue_tracking_styles()includes/class-rpress-frontend-scripts.php(line 839), inRP_Frontend_Scripts::enqueue_checkout_styles()
See also#
Was this page helpful?
