get_custom_logo хук-фильтрWP 4.5.0

Filters the custom logo output.

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

add_filter( 'get_custom_logo', 'wp_kama_get_custom_logo_filter', 10, 2 );

/**
 * Function for `get_custom_logo` filter-hook.
 * 
 * @param string $html    Custom logo HTML output.
 * @param int    $blog_id ID of the blog to get the custom logo for.
 *
 * @return string
 */
function wp_kama_get_custom_logo_filter( $html, $blog_id ){

	// filter...
	return $html;
}
$html(строка)
Custom logo HTML output.
$blog_id(int)
ID of the blog to get the custom logo for.

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

С версии 4.5.0 Введена.
С версии 4.6.0 Added the $blog_id parameter.

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

get_custom_logo()
get_custom_logo
wp-includes/general-template.php 1137
return apply_filters( 'get_custom_logo', $html, $blog_id );

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

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