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 |
---|---|
1078 | /** |
1079 | * Filters the list of custom logo image attributes. |
1080 | * |
1081 | * @since 5.5.0 |
1082 | * |
1083 | * @param array $custom_logo_attr Custom logo image attributes. |
1084 | * @param int $custom_logo_id Custom logo attachment ID. |
1085 | * @param int $blog_id ID of the blog to get the custom logo for. |
1086 | */ |
1087 | $custom_logo_attr = apply_filters( 'get_custom_logo_image_attributes', $custom_logo_attr, $custom_logo_id, $blog_id ); |
1088 |
|
1089 | /* |
1090 | * If the alt attribute is not empty, there's no need to explicitly pass it |
1091 | * because wp_get_attachment_image() already adds the alt attribute. |
1092 | */ |
1093 | $image = wp_get_attachment_image( $custom_logo_id, 'full', false, $custom_logo_attr ); |
1094 |
|
1095 | if ( $unlink_homepage_logo && is_front_page() && ! is_paged() ) { |
1096 | // If on the home page, don't link the logo to home. |