get_site_logo

Unprefixed, backwards-compatible function for getting either the site logo's image URL or its ID.

Description

(string) get_site_logo( (string) $show = 'url' ); 

Returns (string)

Site logo ID or URL (the default).

Parameters (1)

0. $show — Optional. (string) => 'url'
Return the site logo URL or ID.

Usage

  1. if ( !function_exists( 'get_site_logo' ) ) { 
  2. require_once '/core/third-party/site-logo/inc/compat.php'; 
  3.  
  4. // Return the site logo URL or ID. 
  5. $show = 'url'; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = get_site_logo($show); 
  9.  

Defined (1)

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

/core/third-party/site-logo/inc/compat.php  
  1. function get_site_logo( $show = 'url' ) { 
  2. return jetpack_get_site_logo( $show );