WordPress hook directory
post_mime_type_pre

Warning! This hook has been renamed!

As of WP version 2.3, this hook has been renamed to {$field}_pre.

Description

Applied to the MIME type for an attachment prior to saving it in the database.

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 post_mime_type_pre

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

Version File Line Type
2.0 wp-includes/functions-post.php 229 View in context filter
2.0.11 wp-includes/functions-post.php 232 View in context filter
2.1 wp-includes/post.php 1229 View in context filter
2.2 wp-includes/post.php 1235 View in context filter
2.3 Renamed. See {$field}_pre

Related Hooks

We find related hooks using word stems. post_mime_type_pre has 3 significant word stem(s): post, mime, type. Note that some of the hooks below may not appear in all versions of WP.