get_custom_logo
Filters the custom logo output.
Description
Parameters (2)
- 0. $html (string)
- Custom logo HTML output.
- 1. $blog_id (int)
- ID of the blog to get the custom logo for.
Usage
- To run the hook, copy the example below.
- $html = apply_filters( 'get_custom_logo', $html, $blog_id );
- if ( !empty( $html ) ) {
- // everything has led up to this point...
- }
- The following example is for adding a hook callback.
- // define the get_custom_logo callback
- function filter_get_custom_logo( $html, $blog_id ) {
- // make filter magic happen here...
- return $html;
- };
- // add the filter
- add_filter( 'get_custom_logo', 'filter_get_custom_logo', 10, 2 );
- To remove a hook callback, use the example below.
- // remove the filter
- remove_filter( 'get_custom_logo', 'filter_get_custom_logo', 10, 2 );
Defined (1)
The filter is defined in the following location(s).
- /wp-includes/general-template.php
- return apply_filters( 'get_custom_logo', $html, $blog_id );