has_custom_logo

Advertisement

Summery Summery

Determines whether the site has a custom logo.

Syntax Syntax

has_custom_logo( int $blog_id )

Parameters Parameters

$blog_id

(Optional) ID of the blog in question. Default is the ID of the current blog.

Return Return

(bool) Whether the site has a custom logo or not.

Source Source

File: wp-includes/general-template.php

		if ( $size >= 512 ) {
			$size_data = 'full';
		} else {
			$size_data = array( $size, $size );
		}
		$url = wp_get_attachment_image_url( $site_icon_id, $size_data );
	}

	if ( $switched_blog ) {
		restore_current_blog();
	}

	/**
	 * Filters the site icon URL.
	 *
	 * @since 4.4.0

Advertisement

Changelog Changelog

Changelog
Version Description
4.5.0 Introduced.

Advertisement

Leave a Reply