Uses
Uses | Description |
---|---|
wp-includes/general-template.php: get_custom_logo() | Returns a custom logo, linked to home unless the theme supports removing the link on the home page. |
Callback for rendering the custom logo, used in the custom_logo partial.
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.
(string) Custom logo.
File: wp-includes/class-wp-customize-manager.php
public function _render_custom_logo_partial() { return get_custom_logo(); }
Version | Description |
---|---|
4.5.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_customize_manager/_render_custom_logo_partial