Skip to content

Instantly share code, notes, and snippets.

@Codevz
Last active June 18, 2022 10:37
Show Gist options
  • Save Codevz/d5cf0db16061e2f964a2203269251f25 to your computer and use it in GitHub Desktop.
Save Codevz/d5cf0db16061e2f964a2203269251f25 to your computer and use it in GitHub Desktop.
XTRA WP Theme - Disable google fonts, https://xtratheme.com/
<?php
/**
* With this filter you can completely disable google fonts.
*
* @return boolean
*/
add_filter( 'codevz/disable/google_fonts', '__return_true' );
//
// OR
//
/**
* With this filter you can completely disable google fonts.
*
* @return boolean
*/
function codevz_disable_google_fonts( $value ) {
return true;
}
add_filter( 'codevz/disable/google_fonts', 'codevz_disable_google_fonts' );
@Codevz
Copy link
Author

Codevz commented Jan 12, 2022

If you want to see more actions and hooks of XTRA WP theme, Please check out documentation here https://xtratheme.com/docs/developer/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment