wp-content/plugins/advanced-custom-fields-table-field/acf-table-v4.php
/*
		*  format_value()
		*
		*  This filter is appied to the $value after it is loaded from the db and before it is passed to the create_field action
		*
		*  @type	filter
		*  @since   3.6
		*  @date	23/01/13
		*
		*  @param   $value  - the value which was loaded from the database
		*  @param   $post_id - the $post_id from which the value was loaded
		*  @param   $field  - the field array holding all the field options
		*
		*  @return  $value  - the modified value
		*/
format_value()
This filter is appied to the $value after it is loaded from the db and before it is passed to the create_field action



@param   $value  - the value which was loaded from the database
@param   $post_id - the $post_id from which the value was loaded
@param   $field  - the field array holding all the field options

@return  $value  - the modified value
format_value () This filter is appied to the $value after it is loaded from the db and before it is passed to the create_field action @param $value - the value which was loaded from the database @param $post_id - the $post_id from which the value was loaded @param $field - the field array holding all the field options @return $value - the modified value
function format_value_for_api( $value, $post_id, $field )
		{
			$a = json_decode( $value, true );
			$value = false;
			if (
				null !== $a['b'] &&
				count( $a['b'] ) > 0
			) {
				if ( $a['p']['o']['uh'] === 1 ) {
					$value['header'] = $a['h'];
				}
				else {
					$value['header'] = false;
				}
				$value['body'] = $a['b'];
				if (
					count( $a['b'] ) === 1
					AND count( $a['b'][0] ) === 1
					AND trim( $a['b'][0][0]['c'] ) === ''
				) {
					$value = false;
				}
			}
			return $value;
		}
function format_value_for_api ( $ value , $ post_id , $ field ) { $ a = json_decode ( $ value , true ) ; $ value = false ; if ( null !== $ a [ 'b' ] && count ( $ a [ 'b' ] ) > 0 ) { if ( $ a [ 'p' ] [ 'o' ] [ 'uh' ] === 1 ) { $ value [ 'header' ] = $ a [ 'h' ] ; } else { $ value [ 'header' ] = false ; } $ value [ 'body' ] = $ a [ 'b' ] ; if ( count ( $ a [ 'b' ] ) === 1 AND count ( $ a [ 'b' ] [ 0 ] ) === 1 AND trim ( $ a [ 'b' ] [ 0 ] [ 0 ] [ 'c' ] ) === '' ) { $ value = false ; } } return $ value ; }
format_value()
  This filter is appied to the $value after it is loaded from the db and before it is passed to the create_field action
format_value () This filter is appied to the $value after it is loaded from the db and before it is passed to the create_field action
// IF BODY DATA // IF HEADER DATA // BODY // IF SINGLE EMPTY CELL, THEN DO NOT RETURN TABLE DATA