twentythirteen_wpcom_fonts

De-queue Google fonts if custom fonts are being used.

Description

twentythirteen_wpcom_fonts(); 

Usage

  1. if ( !function_exists( 'twentythirteen_wpcom_fonts' ) ) { 
  2. require_once '/inc/wpcom.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = twentythirteen_wpcom_fonts(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/inc/wpcom.php  
  1. function twentythirteen_wpcom_fonts() { 
  2. if ( class_exists( 'TypekitData' ) && class_exists( 'CustomDesign' ) ) { 
  3. if ( CustomDesign::is_upgrade_active() ) { 
  4. $customfonts = TypekitData::get( 'families' ); 
  5. if ( $customfonts && $customfonts['site-title']['id'] && $customfonts['headings']['id'] && $customfonts['body-text']['id'] ) 
  6. wp_dequeue_style( 'twentythirteen-fonts' );