jetpack_theme_supports_social_links

Social Links.

Description

jetpack_theme_supports_social_links(); 

This feature will only be activated for themes that declare their support. This can be done by adding code similar to the following during the 'after_setup_theme' action:

add_theme_support( social-links,, array( ) );


Usage

  1. if ( !function_exists( 'jetpack_theme_supports_social_links' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'jetpack-by-wordpress-com/modules/theme-tools/social-links.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = jetpack_theme_supports_social_links(); 
  7.  

Defined (1)

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

/modules/theme-tools/social-links.php  
  1. function jetpack_theme_supports_social_links() { 
  2. if ( current_theme_supports( 'social-links' ) && function_exists( 'publicize_init' ) ) { 
  3. new Social_Links();