get_custom_logo_image_attributes хук-фильтрWP 5.5.0

Filters the list of custom logo image attributes.

Использование

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(массив)
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.

Список изменений

С версии 5.5.0 Введена.

Где вызывается хук

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 );

Где используется хук в WordPress

Использование не найдено.