the_custom_logo
Displays a custom logo, linked to home.
Description
the_custom_logo( (int) $blog_id = 0 );
Parameters (1)
- 0. $blog_id — Optional. (int)
- ID of the blog in question. Default is the ID of the current blog.
Usage
if ( !function_exists( 'the_custom_logo' ) ) { require_once ABSPATH . WPINC . '/general-template.php'; } // Optional. ID of the blog in question. Default is the ID of the current blog. $blog_id = -1; // NOTICE! Understand what this does before running. $result = the_custom_logo($blog_id);
Defined (1)
The function is defined in the following location(s).
- /wp-includes/general-template.php
- function the_custom_logo( $blog_id = 0 ) {
- echo get_custom_logo( $blog_id );
- }