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 |
---|---|
1579 | * |
1580 | * @since 5.5.0 |
1581 | * |
1582 | * @param bool $match Whether the image relative path from the image meta |
1583 | * matches the end of the URI or path to the image file. |
1584 | * @param string $image_location Full path or URI to the tested image file. |
1585 | * @param array $image_meta The image meta data as returned by 'wp_get_attachment_metadata()'. |
1586 | * @param int $attachment_id The image attachment ID or 0 if not supplied. |
1587 | */ |
1588 | return apply_filters( 'wp_image_file_matches_image_meta', $match, $image_location, $image_meta, $attachment_id ); |
1589 | } |
1590 |
|
1591 | /** |
1592 | * Determines an image's width and height dimensions based on the source file. |
1593 | * |
1594 | * @since 5.5.0 |
1595 | * |
1596 | * @param string $image_src The image source file. |
1597 | * @param array $image_meta The image meta data as returned by 'wp_get_attachment_metadata()'. |