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

acf_revisions::wp_post_revision_field() public ACF 1.0

This filter will load the value for the given field and return it for rendering

{} Это метод класса: acf_revisions{}

Хуков нет.

Возвращает

$value. (string)

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

$acf_revisions = new acf_revisions();
$acf_revisions->wp_post_revision_field( $value, $field_name, $post, $direction );
(mixed)($value) (обязательный)
should be false as it has not yet been loaded
(string)($field_name) (обязательный)
The name of the field
(mixed)($post) (обязательный)
Holds the $post object to load from - in WP 3.5, this is not passed!
(string)($direction) (обязательный)
to / from - not used

Код acf_revisions::wp_post_revision_field() ACF 5.9.1

<?php
function wp_post_revision_field( $value, $field_name, $post = null, $direction = false) {
	
	// bail ealry if is empty
	if( empty($value) ) return $value;
	
	
	// value has not yet been 'maybe_unserialize'
	$value = maybe_unserialize( $value );
	
	
	// vars
	$post_id = $post->ID;
	
	
	// load field
	$field = acf_maybe_get_field( $field_name, $post_id );
	
	
	// default formatting
	if( is_array($value) ) {
		
		$value = implode(', ', $value);
		
	} elseif( is_object($value) ) {
		
		$value = serialize($value);
		
	}
	
	
	// image
	if( $field['type'] == 'image' || $field['type'] == 'file' ) {
		
		$url = wp_get_attachment_url($value);
		$value = $value . ' (' . $url . ')';
		
	}
	
	
	// return
	return $value;
	
}