WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
фильтр не описан

pre_(field) хук-фильтр . 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.

Использование

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

	return $value;
}
$value(смешанный)
Value of the post field.

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

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

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

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

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

wp-includes/post.php 1296
remove_filter( 'pre_comment_content', 'wp_filter_post_kses' );
wp-includes/post.php 1297
add_filter( 'pre_comment_content', 'wp_filter_kses' );
wp-includes/post.php 340
add_filter( 'pre_option_link_manager_enabled', '__return_true', 100 );
wp-includes/post.php 342
remove_filter( 'pre_option_link_manager_enabled', '__return_true', 100 );
wp-includes/post.php 298
add_filter( 'pre_option_show_avatars', '__return_true', 100 );
wp-includes/post.php 308
remove_filter( 'pre_option_show_avatars', '__return_true', 100 );
wp-includes/post.php 719
remove_filter( 'pre_option_stylesheet', array( $this, 'get_stylesheet' ) );
wp-includes/post.php 724
remove_filter( 'pre_option_template_root', array( $this, 'get_template_root' ) );
wp-includes/post.php 723
remove_filter( 'pre_option_stylesheet_root', array( $this, 'get_stylesheet_root' ) );
wp-includes/post.php 720
remove_filter( 'pre_option_template', array( $this, 'get_template' ) );
wp-includes/post.php 685
add_filter( 'pre_option_stylesheet_root', array( $this, 'get_stylesheet_root' ) );
wp-includes/post.php 716
remove_filter( 'pre_option_current_theme', array( $this, 'current_theme' ) );
wp-includes/post.php 686
add_filter( 'pre_option_template_root', array( $this, 'get_template_root' ) );
wp-includes/post.php 682
add_filter( 'pre_option_template', array( $this, 'get_template' ) );
wp-includes/post.php 681
add_filter( 'pre_option_stylesheet', array( $this, 'get_stylesheet' ) );
wp-includes/post.php 678
add_filter( 'pre_option_current_theme', array( $this, 'current_theme' ) );
wp-includes/post.php 378
add_filter( "pre_option_{$id_base}", array( $this, '_preview_filter' ) );
wp-includes/post.php 2024
remove_filter( "pre_option_{$option_name}", array( $this, 'capture_filter_pre_get_option' ) );
wp-includes/post.php 2021
remove_filter( 'pre_update_option', array( $this, 'capture_filter_pre_update_option' ), 10 );
wp-includes/post.php 1963
add_filter( 'pre_update_option', array( $this, 'capture_filter_pre_update_option' ), 10, 3 );
wp-includes/post.php 1982
add_filter( "pre_option_{$option_name}", array( $this, 'capture_filter_pre_get_option' ) );
wp-includes/post.php 3511
remove_filter( 'pre_comment_content', 'wp_filter_post_kses' );
wp-includes/post.php 3512
add_filter( 'pre_comment_content', 'wp_filter_kses' );
wp-includes/post.php 425
add_filter( 'pre_option_embed_autourls', '__return_true' );
wp-includes/post.php 95
add_filter( 'pre_post_mime_type', 'sanitize_mime_type' );
wp-includes/post.php 86
add_filter( 'pre_term_slug', 'sanitize_title' );
wp-includes/post.php 604
add_filter( 'pre_oembed_result', 'wp_filter_pre_oembed_result', 10, 3 );
wp-includes/post.php 415
add_filter( 'pre_option_gmt_offset', 'wp_timezone_override_offset' );
wp-includes/post.php 252
add_filter( 'pre_comment_content', 'wp_rel_ugc', 15 );
wp-includes/post.php 248
add_filter( 'pre_kses', 'wp_pre_kses_block_attributes', 10, 3 );
wp-includes/post.php 247
add_filter( 'pre_kses', 'wp_pre_kses_less_than' );
wp-includes/post.php 5005
remove_filter( 'pre_kses', 'wp_pre_kses_block_attributes', 10 );
wp-includes/post.php 5007
add_filter( 'pre_kses', 'wp_pre_kses_block_attributes', 10, 3 );
wp-includes/post.php 2087
add_filter( 'pre_comment_content', 'wp_filter_post_kses' );
wp-includes/post.php 2089
add_filter( 'pre_comment_content', 'wp_filter_kses' );
wp-includes/post.php 2115
remove_filter( 'pre_comment_content', 'wp_filter_post_kses' );
wp-includes/post.php 2116
remove_filter( 'pre_comment_content', 'wp_filter_kses' );
wp-includes/post.php 77
add_filter( 'pre_handle_404', array( $this, 'redirect_sitemapxml' ), 10, 2 );