pre_post_(field) filter-hook . WP 2.3.0
Filters the value of a specific field before saving.
The dynamic portion of the hook name, $field_no_prefix, refers to the post field name.
Usage
add_filter( 'pre_post_(field)', 'filter_function_name_9460' ); function filter_function_name_9460( $value ){ // filter... return $value; }
- $value(mixed)
- Value of the post field.
Changelog
Since 2.3.0 | Introduced. |
Where the hook is called
pre_post_(field)
wp-includes/post.php 2481
$value = apply_filters( "pre_post_{$field}", $value );
Where in WP core the hook is used WordPress
wp-includes/post.php 95
add_filter( 'pre_post_mime_type', 'sanitize_mime_type' );