Last active
October 2, 2023 13:11
-
-
Save theperfectwill/09f3fca6f31245bf9532e0a2629bc730 to your computer and use it in GitHub Desktop.
Breakdance Builder - Disable google Fonts from Loading or Being Selected in The Breakdance Editor
This file contains 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
<?php | |
// Disable google Fonts from Loading or Being Selected in The Breakdance Editor | |
// Then you can upload your custom fonts, and they will be the only fonts to select from in the editor | |
add_filter('breakdance_register_font', function($font) { | |
$isGoogleFont = !!$font['dependencies']['googleFonts']; | |
if ($isGoogleFont) return false; | |
return $font; | |
}, PHP_INT_MAX, 1); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Screenshots
No Google Fonts Listed to Select From
Uploaded Custom Font (Google Great Vibes in this case)
Now It Is The Only Font Listed to Select From
Now It Is Kablamy - What is Kablamy?
Reference: https://www.youtube.com/watch?v=HTUCO_kTJ2M, which theme song has great break dancing music and when entertainment was PERFECTLY CHEAP!!! LOL (and more child like than adult corrupted).
Adult Corrupted? Reference: https://www.biblegateway.com/passage/?search=Titus+1%3A15%2C+Psalm+51%3A10-14&version=AMPC;NKJV