(field)_pre filter-hookWP 2.3.0

Filters the value of a specific post field before saving.

The dynamic portion of the hook name, $field, refers to the post field name.


add_filter( '(field)_pre', 'wp_kama_field_pre_filter' );

 * Function for `(field)_pre` filter-hook.
 * @param mixed $value Value of the post field.
 * @return mixed
function wp_kama_field_pre_filter( $value ){

	// filter...
	return $value;
Value of the post field.


Since 2.3.0 Introduced.

Where the hook is called

wp-includes/post.php 2884
$value = apply_filters( "{$field}_pre", $value );

Where the hook is used in WordPress

Usage not found.