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 |
---|---|
1117 | * |
1118 | * @param string $html HTML img element or empty string on failure. |
1119 | * @param int $attachment_id Image attachment ID. |
1120 | * @param string|int[] $size Requested image size. Can be any registered image size name, or |
1121 | * an array of width and height values in pixels (in that order). |
1122 | * @param bool $icon Whether the image should be treated as an icon. |
1123 | * @param string[] $attr Array of attribute values for the image markup, keyed by attribute name. |
1124 | * See wp_get_attachment_image(). |
1125 | */ |
1126 | return apply_filters( 'wp_get_attachment_image', $html, $attachment_id, $size, $icon, $attr ); |
1127 | } |
1128 |
|
1129 | /** |
1130 | * Gets the URL of an image attachment. |
1131 | * |
1132 | * @since 4.4.0 |
1133 | * |
1134 | * @param int $attachment_id Image attachment ID. |
1135 | * @param string|int[] $size Optional. Image size. Accepts any registered image size name, or an array of |