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

_wp_post_revision_field_(field) хук-фильтр . WP 3.6.0

Contextually filter a post revision field.

The dynamic portion of the hook name, $field, corresponds to each of the post fields of the revision object being iterated over in a foreach statement.


add_filter( '_wp_post_revision_field_(field)', 'filter_function_name_8762', 10, 4 );
function filter_function_name_8762( $revision_field, $field, $compare_from, $context ){
	// filter...

	return $revision_field;
The current revision field to compare to or from.
The current revision field.
The revision post object to compare to or from.
The context of whether the current revision is the old or the new one. Values are 'to' or 'from'.

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

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

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

wp-admin/includes/revision.php 82
$content_from = $compare_from ? apply_filters( "_wp_post_revision_field_{$field}", $compare_from->$field, $field, $compare_from, 'from' ) : '';
wp-admin/includes/revision.php 85
$content_to = apply_filters( "_wp_post_revision_field_{$field}", $compare_to->$field, $field, $compare_to, 'to' );

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

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