WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )
apply_filters( "hook_name", "what_to_filter" )
.Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
Line | Code |
---|---|
1053 | /** |
1054 | * Filters the list of custom logo image attributes. |
1055 | * |
1056 | * @since 5.5.0 |
1057 | * |
1058 | * @param array $custom_logo_attr Custom logo image attributes. |
1059 | * @param int $custom_logo_id Custom logo attachment ID. |
1060 | * @param int $blog_id ID of the blog to get the custom logo for. |
1061 | */ |
1062 | $custom_logo_attr = apply_filters( 'get_custom_logo_image_attributes', $custom_logo_attr, $custom_logo_id, $blog_id ); |
1063 |
|
1064 | /* |
1065 | * If the alt attribute is not empty, there's no need to explicitly pass it |
1066 | * because wp_get_attachment_image() already adds the alt attribute. |
1067 | */ |
1068 | $image = wp_get_attachment_image( $custom_logo_id, 'full', false, $custom_logo_attr ); |
1069 |
|
1070 | if ( $unlink_homepage_logo && is_front_page() && ! is_paged() ) { |
1071 | // If on the home page, don't link the logo to home. |