WordPress at a glance
filter is not described

(field)_pre filter-hook . WP 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( '(field)_pre', 'filter_function_name_6901' );
function filter_function_name_6901( $value ){
	// filter...

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

Список изменений

С версии 2.3.0 Введена.

Где вызывается хук

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

Где используется хук в ядре WP

wp-includes/default-filters.php 264
add_filter( 'title_save_pre', 'trim' );
wp-includes/kses.php 2083
add_filter( 'title_save_pre', 'wp_filter_kses' );
wp-includes/kses.php 2093
add_filter( 'content_save_pre', 'wp_filter_post_kses' );
wp-includes/kses.php 2094
add_filter( 'excerpt_save_pre', 'wp_filter_post_kses' );
wp-includes/kses.php 2095
add_filter( 'content_filtered_save_pre', 'wp_filter_post_kses' );
wp-includes/kses.php 2112
remove_filter( 'title_save_pre', 'wp_filter_kses' );
wp-includes/kses.php 2119
remove_filter( 'content_save_pre', 'wp_filter_post_kses' );
wp-includes/kses.php 2120
remove_filter( 'excerpt_save_pre', 'wp_filter_post_kses' );
wp-includes/kses.php 2121
remove_filter( 'content_filtered_save_pre', 'wp_filter_post_kses' );