jetpack_the_site_logo

Filter the Site Logo output.

Description

apply_filters( 'jetpack_the_site_logo', (string) $html, (array) $logo, (string) $size ); 

Parameters (3)

0. $html (string)
Site Logo HTML output.
1. $logo (array)
Array of Site Logo details.
2. $size (string)
Size specified in add_theme_support declaration, or thumbnail default.

Usage

To run the hook, copy the example below.
  1. $html = apply_filters( 'jetpack_the_site_logo', $html, $logo, $size ); 
  2.  
  3. if ( !empty( $html ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the jetpack_the_site_logo callback 
  2. function filter_jetpack_the_site_logo( $html, $logo, $size ) { 
  3. // make filter magic happen here... 
  4. return $html
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'jetpack_the_site_logo', 'filter_jetpack_the_site_logo', 10, 3 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'jetpack_the_site_logo', 'filter_jetpack_the_site_logo', 10, 3 ); 

Defined (1)

The filter is defined in the following location(s).

/core/third-party/site-logo/inc/functions.php  
  1. echo apply_filters( 'jetpack_the_site_logo', $html, $logo, $size );