_wp_post_revision_field_$field

_wp_post_revision_field_$field

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.4.3

apply_filters('_wp_post_revision_field_$field') is found 2 times:

  • /wp-admin/includes/revision.php line 90
    		 * @param WP_Post $compare_from   The revision post object to compare to or from.
    		 * @param string  $context        The context of whether the current revision is the old
    		 *                                or the new one. Values are 'to' or 'from'.
    		 */
    		$content_from = $compare_from ? apply_filters( "_wp_post_revision_field_{$field}", $compare_from->$field, $field, $compare_from, 'from' ) : '';
    
    		/** This filter is documented in wp-admin/includes/revision.php */
    		$content_to = apply_filters( "_wp_post_revision_field_{$field}", $compare_to->$field, $field, $compare_to, 'to' );
    
    		$args = array(
    			'show_split_view' => true,
    
  • /wp-admin/includes/revision.php line 93
    		 */
    		$content_from = $compare_from ? apply_filters( "_wp_post_revision_field_{$field}", $compare_from->$field, $field, $compare_from, 'from' ) : '';
    
    		/** This filter is documented in wp-admin/includes/revision.php */
    		$content_to = apply_filters( "_wp_post_revision_field_{$field}", $compare_to->$field, $field, $compare_to, 'to' );
    
    		$args = array(
    			'show_split_view' => true,
    			'title_left'      => __( 'Removed' ),
    			'title_right'     => __( 'Added' ),
    		);