WordPress hook directory
attachment_max_dims

Description

Applied to the maximum image dimensions before reducing an image size. Filter function input (and return value) is either false (if no maximum dimensions have been specified) or a two-item list (width, height).

This description was scraped automatically from the WordPress filter reference or action reference. If it looks like this is the wrong description, please tell me so I can fix my code.

WordPress version history for attachment_max_dims

This database has information for all major versions from WP 1.2.1 through 5.1.

Version File Line Type
2.0 wp-includes/template-functions-post.php 515 View in context filter
2.0.11 wp-includes/template-functions-post.php 526 View in context filter
2.1 wp-includes/post-template.php 388 View in context filter
2.2 wp-includes/post-template.php 404 View in context filter
2.3 wp-includes/post-template.php 429 View in context filter
2.5 wp-includes/post-template.php 456 View in context filter
2.6 wp-includes/post-template.php 457 View in context filter
2.7 wp-includes/post-template.php 886 View in context filter
2.8 wp-includes/post-template.php 1042 View in context filter
2.9 wp-includes/post-template.php 1038 View in context filter
3.0 wp-includes/deprecated.php 1978 View in context filter
3.1 wp-includes/deprecated.php 1978 View in context filter
3.2 wp-includes/deprecated.php 1978 View in context filter
3.3 wp-includes/deprecated.php 1978 View in context filter
3.4 wp-includes/deprecated.php 1978 View in context filter
3.5 wp-includes/deprecated.php 1978 View in context filter
3.6 wp-includes/deprecated.php 1964 View in context filter
3.7 wp-includes/deprecated.php 1964 View in context filter
3.8 wp-includes/deprecated.php 1964 View in context filter
3.9 wp-includes/deprecated.php 1964 View in context filter
4.0 wp-includes/deprecated.php 1983 View in context filter
4.1 wp-includes/deprecated.php 1977 View in context filter
4.2 wp-includes/deprecated.php 1977 View in context filter
4.3 wp-includes/deprecated.php 1977 View in context filter
4.4 wp-includes/deprecated.php 1906 View in context filter
4.5 wp-includes/deprecated.php 1916 View in context filter
4.6 wp-includes/deprecated.php 1916 View in context filter
4.7 wp-includes/deprecated.php 1916 View in context filter
4.8 wp-includes/deprecated.php 1916 View in context filter
4.9 wp-includes/deprecated.php 1924 View in context filter
5.0 wp-includes/deprecated.php 1924 View in context filter
5.1 wp-includes/deprecated.php 1924 View in context filter

Related Hooks

We find related hooks using word stems. attachment_max_dims has 3 significant word stem(s): attachment, max, dims. Note that some of the hooks below may not appear in all versions of WP.