pre_(field) 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.

Usage

add_filter( 'pre_(field)', 'wp_kama_pre_field_filter' );
function wp_kama_pre_field_filter( $value ){
	// filter...

	return $value;
}
$value(mixed)
Value of the post field.

Changelog

Since 2.3.0 Introduced.

Where the hook is called

sanitize_post_field()
pre_(field)
sanitize_bookmark_field()
pre_(field)
sanitize_user_field()
pre_(field)
wp-includes/post.php 2834
$value = apply_filters( "pre_{$field}", $value );
wp-includes/bookmark.php 437
$value = apply_filters( "pre_{$field}", $value );
wp-includes/user.php 1628
$value = apply_filters( "pre_{$field}", $value );

Where the hook is used in WordPress

Usage not found.