WP_Customize_Manager::_render_custom_logo_partial() WordPress Method

The WP_Customize_Manager::_render_custom_logo_partial() method is used to render a partial for the custom logo control. This partial includes the logo image and the site title.

WP_Customize_Manager::_render_custom_logo_partial() #

Callback for rendering the custom logo, used in the custom_logo partial.


Description

This method exists because the partial object and context data are passed into a partial’s render_callback so we cannot use get_custom_logo() as the render_callback directly since it expects a blog ID as the first argument. When WP no longer supports PHP 5.3, this method can be removed in favor of an anonymous function.

Top ↑

See also


Top ↑

Return

(string) Custom logo.


Top ↑

Source

File: wp-includes/class-wp-customize-manager.php

	public function _render_custom_logo_partial() {
		return get_custom_logo();
	}


Top ↑

Changelog

Changelog
VersionDescription
4.5.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More