wpseo_frontend_head_init

Instantiate the different social classes on the frontend.

Description

wpseo_frontend_head_init(); 

Usage

  1. if ( !function_exists( 'wpseo_frontend_head_init' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'yoast-seo/wp-seo-main.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = wpseo_frontend_head_init(); 
  7.  

Defined (1)

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

/wp-seo-main.php  
  1. function wpseo_frontend_head_init() { 
  2. $options = WPSEO_Options::get_option( 'wpseo_social' ); 
  3. if ( $options['twitter'] === true ) { 
  4. add_action( 'wpseo_head', array( 'WPSEO_Twitter', 'get_instance' ), 40 ); 
  5.  
  6. if ( $options['opengraph'] === true ) { 
  7. $GLOBALS['wpseo_og'] = new WPSEO_OpenGraph; 
  8.