pre_post_(field)
Usage
add_filter( 'pre_post_(field)', 'wp_kama_pre_post_field_filter' ); /** * Function for `pre_post_(field)` filter-hook. * * @param $value * * @return */ function wp_kama_pre_post_field_filter( $value ){ // filter... return $value; }
- $value
- -
Where the hook is called
pre_post_(field)
wp-includes/post.php 2959
$value = apply_filters( "pre_post_{$field}", $value );
Where the hook is used in WordPress
wp-includes/default-filters.php 100
add_filter( 'pre_post_mime_type', 'sanitize_mime_type' );