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
if ( !function_exists( 'get_site_logo' ) ) { require_once ABSPATH . PLUGINDIR . 'jetpack-by-wordpress-com/modules/theme-tools/site-logo/inc/compat.php'; } // Return the site logo URL or ID. $show = 'url'; // NOTICE! Understand what this does before running. $result = get_site_logo($show);
Defined (1)
The function is defined in the following location(s).
- /modules/theme-tools/site-logo/inc/compat.php
- function get_site_logo( $show = 'url' ) {
- return jetpack_get_site_logo( $show );
- }