twentyfourteen_dequeue_fonts

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

Description

twentyfourteen_dequeue_fonts(); 

Usage

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

Defined (1)

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

/inc/wpcom.php  
  1. function twentyfourteen_dequeue_fonts() { 
  2. if ( class_exists( 'TypekitData' ) && class_exists( 'CustomDesign' ) && CustomDesign::is_upgrade_active() ) { 
  3. $custom_fonts = TypekitData::get( 'families' ); 
  4. if ( $custom_fonts && $custom_fonts['headings']['id'] && $custom_fonts['body-text']['id'] ) 
  5. wp_dequeue_style( 'twentyfourteen-lato' );