Skip to content

Instantly share code, notes, and snippets.

  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
apaou_custom_fonts_array.php
<?php
/**
* Register a custom font with Text Preview
*/
function prefix_register_custom_font( $fonts ) {
$fonts['font-1'] = 'My font 1';
return $fonts;
}
add_filter( 'apaou_custom_fonts_array', 'prefix_register_custom_font' );
@websiterdesigner1
Copy link

Thank You So Much. Can you tell that how can we type the custom font?

function prefix_register_custom_font( $fonts ) {
$fonts**['font-1']** = 'My font 1';
return $fonts;

font-1 ????

@plugin-republic
Copy link
Author

Hi

Please raise a ticket here, https://pluginrepublic.com/my-account/, and we'll get straight back to you.

Gareth

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