get_custom_logo_image_attributes filter-hookWP 5.5.0

Filters the list of custom logo image attributes.

Usage

add_filter( 'get_custom_logo_image_attributes', 'wp_kama_get_custom_logo_image_attributes_filter', 10, 3 );

/**
 * Function for `get_custom_logo_image_attributes` filter-hook.
 * 
 * @param array $custom_logo_attr Custom logo image attributes.
 * @param int   $custom_logo_id   Custom logo attachment ID.
 * @param int   $blog_id          ID of the blog to get the custom logo for.
 *
 * @return array
 */
function wp_kama_get_custom_logo_image_attributes_filter( $custom_logo_attr, $custom_logo_id, $blog_id ){

	// filter...
	return $custom_logo_attr;
}
$custom_logo_attr(array)
Custom logo image attributes.
$custom_logo_id(int)
Custom logo attachment ID.
$blog_id(int)
ID of the blog to get the custom logo for.

Changelog

Since 5.5.0 Introduced.

Where the hook is called

get_custom_logo()
get_custom_logo_image_attributes
wp-includes/general-template.php 1097
$custom_logo_attr = apply_filters( 'get_custom_logo_image_attributes', $custom_logo_attr, $custom_logo_id, $blog_id );

Where the hook is used in WordPress

Usage not found.