site_logo_init

Activate the Site Logo plugin.

Description

site_logo_init(); 

Usage

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

Defined (1)

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

/modules/theme-tools/site-logo.php  
  1. function site_logo_init() { 
  2. // Only load our code if our theme declares support, and the standalone plugin is not activated. 
  3. if ( current_theme_supports( 'site-logo' ) && ! class_exists( 'Site_Logo', false ) ) { 
  4. // Load our class for namespacing. 
  5. require( dirname( __FILE__ ) . '/site-logo/inc/class-site-logo.php' ); 
  6.  
  7. // Load template tags. 
  8. require( dirname( __FILE__ ) . '/site-logo/inc/functions.php' ); 
  9.  
  10. // Load backwards-compatible template tags. 
  11. require( dirname( __FILE__ ) . '/site-logo/inc/compat.php' );