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

post_(field) хук-фильтр . WP 2.3.0

Filters the value of a specific post field for display.

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

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

add_filter( 'post_(field)', 'filter_function_name_9454', 10, 3 );
function filter_function_name_9454( $value, $post_id, $context ){
	// filter...

	return $value;
}
$value(смешанный)
Value of the prefixed post field.
$post_id(число)
Post ID.
$context(строка)
Context for how to sanitize the field. Possible values include 'raw', 'edit', 'db', 'display', 'attribute' and 'js'.

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

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

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

sanitize_post_field()
post_(field)
wp-includes/post.php 2399
$value = apply_filters( "post_{$field}", $value, $post_id, $context );

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

wp-admin/includes/admin-filters.php 152
add_action( 'post_updated', array( 'WP_Privacy_Policy_Content', '_policy_page_updated' ) );
wp-includes/default-filters.php 354
add_action( 'post_updated', 'wp_save_post_revision', 10, 1 );
wp-includes/default-filters.php 391
add_action( 'post_updated', 'wp_check_for_changed_slugs', 12, 3 );
wp-includes/default-filters.php 395
add_action( 'post_updated', 'wp_check_for_changed_dates', 12, 3 );
wp-includes/default-filters.php 96
add_filter( 'post_mime_type', 'sanitize_mime_type' );
wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php 1594
add_filter( 'post_password_required', '__return_false' );
wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php 1606
remove_filter( 'post_password_required', '__return_false' );
wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php 1523
add_filter( 'post_password_required', '__return_false' );
wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php 1550
remove_filter( 'post_password_required', '__return_false' );
wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php 303
add_filter( 'post_password_required', '__return_false' );
wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php 319
remove_filter( 'post_password_required', '__return_false' );
wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php 417
add_filter( 'post_password_required', '__return_false' );