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੐)|#o0aڱ$I>}k&1`U#V?YsV x>{t1[I~D&(I$I/{H0fw"q"y%4 IXyE~M3 8XψL}qE$I[> nD?~sf ]o΁ cT6"?'_Ἣ $I>~.f|'!N?⟩0G KkXZE]ޡ;/&?k OۘH$IRۀwXӨ<7@PnS04aӶp.:@\IWQJ6sS%I$e5ڑv`3:x';wq_vpgHyXZ 3gЂ7{{EuԹn±}$I$8t;b|591nءQ"P6O5i }iR̈́%Q̄p!I䮢]O{H$IRϻ9s֧ a=`- aB\X0"+5"C1Hb?߮3x3&gşggl_hZ^,`5?ߎvĸ%̀M!OZC2#0x LJ0 Gw$I$I}<{Eb+y;iI,`ܚF:5ܛA8-O-|8K7s|#Z8a&><a&/VtbtLʌI$I$I$I$I$I$IRjDD%tEXtdate:create2022-05-31T04:40:26+00:00!Î%tEXtdate:modify2022-05-31T04:40:26+00:00|{2IENDB`Mini Shell

HOME


Mini Shell 1.0
DIR:/home/micropetgroup.com/www/wp-content/plugins/advanced-custom-fields/includes/api/
Upload File :
Current File : /home/micropetgroup.com/www/wp-content/plugins/advanced-custom-fields/includes/api/api-template.php
<?php

/*
*  get_field()
*
*  This function will return a custom field value for a specific field name/key + post_id.
*  There is a 3rd parameter to turn on/off formating. This means that an image field will not use
*  its 'return option' to format the value but return only what was saved in the database
*
*  @type    function
*  @since   3.6
*  @date    29/01/13
*
*  @param   $selector (string) the field name or key
*  @param   $post_id (mixed) the post_id of which the value is saved against
*  @param   $format_value (boolean) whether or not to format the value as described above
*  @return  (mixed)
*/

function get_field( $selector, $post_id = false, $format_value = true ) {

	// filter post_id
	$post_id = acf_get_valid_post_id( $post_id );

	// get field
	$field = acf_maybe_get_field( $selector, $post_id );

	// create dummy field
	if ( ! $field ) {

		$field = acf_get_valid_field(
			array(
				'name' => $selector,
				'key'  => '',
				'type' => '',
			)
		);

		// prevent formatting
		$format_value = false;

	}

	// get value for field
	$value = acf_get_value( $post_id, $field );

	// format value
	if ( $format_value ) {

		// get value for field
		$value = acf_format_value( $value, $post_id, $field );

	}

	// return
	return $value;

}


/*
*  the_field()
*
*  This function is the same as echo get_field().
*
*  @type    function
*  @since   1.0.3
*  @date    29/01/13
*
*  @param   $selector (string) the field name or key
*  @param   $post_id (mixed) the post_id of which the value is saved against
*  @return  n/a
*/

function the_field( $selector, $post_id = false, $format_value = true ) {

	$value = get_field( $selector, $post_id, $format_value );

	if ( is_array( $value ) ) {

		$value = @implode( ', ', $value );

	}

	echo $value;

}

/**
 * This function will return an array containing all the field data for a given field_name.
 *
 * @since 3.6
 * @date  3/02/13
 *
 * @param string $selector     The field name or key.
 * @param mixed  $post_id      The post_id of which the value is saved against.
 * @param bool   $format_value Whether to format the field value.
 * @param bool   $load_value   Whether to load the field value.
 *
 * @return array $field
 */
function get_field_object( $selector, $post_id = false, $format_value = true, $load_value = true ) {
	// Compatibility with ACF ~4.
	if ( is_array( $format_value ) && isset( $format_value['format_value'] ) ) {
		$format_value = $format_value['format_value'];
	}

	$post_id = acf_get_valid_post_id( $post_id );
	$field   = acf_maybe_get_field( $selector, $post_id );

	if ( ! $field ) {
		return false;
	}

	if ( $load_value ) {
		$field['value'] = acf_get_value( $post_id, $field );
	}

	if ( $format_value ) {
		$field['value'] = acf_format_value( $field['value'], $post_id, $field );
	}

	return $field;
}

/*
*  acf_get_object_field
*
*  This function will return a field for the given selector.
*  It will also review the field_reference to ensure the correct field is returned which makes it useful for the template API
*
*  @type    function
*  @date    4/08/2015
*  @since   5.2.3
*
*  @param   $selector (mixed) identifyer of field. Can be an ID, key, name or post object
*  @param   $post_id (mixed) the post_id of which the value is saved against
*  @param   $strict (boolean) if true, return a field only when a field key is found.
*  @return  $field (array)
*/
function acf_maybe_get_field( $selector, $post_id = false, $strict = true ) {

	// init
	acf_init();

	// Check if field key was given.
	if ( acf_is_field_key( $selector ) ) {
		return acf_get_field( $selector );
	}

	// Lookup field via reference.
	$post_id = acf_get_valid_post_id( $post_id );
	$field   = acf_get_meta_field( $selector, $post_id );
	if ( $field ) {
		return $field;
	}

	// Lookup field loosely via name.
	if ( ! $strict ) {
		return acf_get_field( $selector );
	}

	// Return no result.
	return false;
}

/*
*  acf_maybe_get_sub_field
*
*  This function will attempt to find a sub field
*
*  @type    function
*  @date    3/10/2016
*  @since   5.4.0
*
*  @param   $post_id (int)
*  @return  $post_id (int)
*/

function acf_maybe_get_sub_field( $selectors, $post_id = false, $strict = true ) {

	// bail ealry if not enough selectors
	if ( ! is_array( $selectors ) || count( $selectors ) < 3 ) {
		return false;
	}

	// vars
	$offset    = acf_get_setting( 'row_index_offset' );
	$selector  = acf_extract_var( $selectors, 0 );
	$selectors = array_values( $selectors ); // reset keys

	// attempt get field
	$field = acf_maybe_get_field( $selector, $post_id, $strict );

	// bail early if no field
	if ( ! $field ) {
		return false;
	}

	// loop
	for ( $j = 0; $j < count( $selectors ); $j += 2 ) {

		// vars
		$sub_i      = $selectors[ $j ];
		$sub_s      = $selectors[ $j + 1 ];
		$field_name = $field['name'];

		// find sub field
		$field = acf_get_sub_field( $sub_s, $field );

		// bail early if no sub field
		if ( ! $field ) {
			return false;
		}

		// add to name
		$field['name'] = $field_name . '_' . ( $sub_i - $offset ) . '_' . $field['name'];

	}

	// return
	return $field;
}

/*
*  get_fields()
*
*  This function will return an array containing all the custom field values for a specific post_id.
*  The function is not very elegant and wastes a lot of PHP memory / SQL queries if you are not using all the values.
*
*  @type    function
*  @since   3.6
*  @date    29/01/13
*
*  @param   $post_id (mixed) the post_id of which the value is saved against
*  @param   $format_value (boolean) whether or not to format the field value
*  @return  (array) associative array where field name => field value
*/

function get_fields( $post_id = false, $format_value = true ) {

	// vars
	$fields = get_field_objects( $post_id, $format_value );
	$meta   = array();

	// bail early
	if ( ! $fields ) {
		return false;
	}

	// populate
	foreach ( $fields as $k => $field ) {

		$meta[ $k ] = $field['value'];

	}

	// return
	return $meta;

}


/*
*  get_field_objects()
*
*  This function will return an array containing all the custom field objects for a specific post_id.
*  The function is not very elegant and wastes a lot of PHP memory / SQL queries if you are not using all the fields / values.
*
*  @type    function
*  @since   3.6
*  @date    29/01/13
*
*  @param   $post_id (mixed) the post_id of which the value is saved against
*  @param   $format_value (boolean) whether or not to format the field value
*  @param   $load_value (boolean) whether or not to load the field value
*  @return  (array) associative array where field name => field
*/

function get_field_objects( $post_id = false, $format_value = true, $load_value = true ) {

	// init
	acf_init();

	// validate post_id
	$post_id = acf_get_valid_post_id( $post_id );

	// get meta
	$meta = acf_get_meta( $post_id );

	// bail early if no meta
	if ( empty( $meta ) ) {
		return false;
	}

	// populate vars
	$fields = array();
	foreach ( $meta as $key => $value ) {

		// bail if reference key does not exist
		if ( ! isset( $meta[ "_$key" ] ) ) {
			continue;
		}

		// get field
		$field = acf_get_field( $meta[ "_$key" ] );

		// bail early if no field, or if the field's name is different to $key
		// - solves problem where sub fields (and clone fields) are incorrectly allowed
		if ( ! $field || $field['name'] !== $key ) {
			continue;
		}

		// load value
		if ( $load_value ) {
			$field['value'] = acf_get_value( $post_id, $field );
		}

		// format value
		if ( $format_value ) {
			$field['value'] = acf_format_value( $field['value'], $post_id, $field );
		}

		// append to $value
		$fields[ $key ] = $field;
	}

	// no value
	if ( empty( $fields ) ) {
		return false;
	}

	// return
	return $fields;
}


/**
 * have_rows
 *
 * Checks if a field (such as Repeater or Flexible Content) has any rows of data to loop over.
 * This function is intended to be used in conjunction with the_row() to step through available values.
 *
 * @date    2/09/13
 * @since   4.3.0
 *
 * @param   string $selector The field name or field key.
 * @param   mixed  $post_id The post ID where the value is saved. Defaults to the current post.
 * @return  bool
 */
function have_rows( $selector, $post_id = false ) {

	// Validate and backup $post_id.
	$_post_id = $post_id;
	$post_id  = acf_get_valid_post_id( $post_id );

	// Vars.
	$key         = "selector={$selector}/post_id={$post_id}";
	$active_loop = acf_get_loop( 'active' );
	$prev_loop   = acf_get_loop( 'previous' );
	$new_loop    = false;
	$sub_field   = false;

	// Check if no active loop.
	if ( ! $active_loop ) {
		$new_loop = 'parent';

		// Detect "change" compared to the active loop.
	} elseif ( $key !== $active_loop['key'] ) {

		// Find sub field and check if a sub value exists.
		$sub_field_exists = false;
		$sub_field        = acf_get_sub_field( $selector, $active_loop['field'] );
		if ( $sub_field ) {
			$sub_field_exists = isset( $active_loop['value'][ $active_loop['i'] ][ $sub_field['key'] ] );
		}

		// Detect change in post_id.
		if ( $post_id != $active_loop['post_id'] ) {

			// Case: Change in $post_id was due to this being a nested loop and not specifying the $post_id.
			// Action: Move down one level into a new loop.
			if ( empty( $_post_id ) && $sub_field_exists ) {
				$new_loop = 'child';

				// Case: Change in $post_id was due to a nested loop ending.
				// Action: move up one level through the loops.
			} elseif ( $prev_loop && $prev_loop['post_id'] == $post_id ) {
				acf_remove_loop( 'active' );
				$active_loop = $prev_loop;

				// Case: Chang in $post_id is the most obvious, used in an WP_Query loop with multiple $post objects.
				// Action: leave this current loop alone and create a new parent loop.
			} else {
				$new_loop = 'parent';
			}

			// Detect change in selector.
		} elseif ( $selector != $active_loop['selector'] ) {

			// Case: Change in $field_name was due to this being a nested loop.
			// Action: move down one level into a new loop.
			if ( $sub_field_exists ) {
				$new_loop = 'child';

				// Case: Change in $field_name was due to a nested loop ending.
				// Action: move up one level through the loops.
			} elseif ( $prev_loop && $prev_loop['selector'] == $selector && $prev_loop['post_id'] == $post_id ) {
				acf_remove_loop( 'active' );
				$active_loop = $prev_loop;

				// Case: Change in $field_name is the most obvious, this is a new loop for a different field within the $post.
				// Action: leave this current loop alone and create a new parent loop.
			} else {
				$new_loop = 'parent';
			}
		}
	}

	// Add loop if required.
	if ( $new_loop ) {
		$args = array(
			'key'      => $key,
			'selector' => $selector,
			'post_id'  => $post_id,
			'name'     => null,
			'value'    => null,
			'field'    => null,
			'i'        => -1,
		);

		// Case: Parent loop.
		if ( $new_loop === 'parent' ) {
			$field = get_field_object( $selector, $post_id, false );
			if ( $field ) {
				$args['field'] = $field;
				$args['value'] = $field['value'];
				$args['name']  = $field['name'];
				unset( $args['field']['value'] );
			}

			// Case: Child loop ($sub_field must exist).
		} else {
			$args['field']   = $sub_field;
			$args['value']   = $active_loop['value'][ $active_loop['i'] ][ $sub_field['key'] ];
			$args['name']    = "{$active_loop['name']}_{$active_loop['i']}_{$sub_field['name']}";
			$args['post_id'] = $active_loop['post_id'];
		}

		// Bail early if value is either empty or a non array.
		if ( ! $args['value'] || ! is_array( $args['value'] ) ) {
			return false;
		}

		// Allow for non repeatable data for Group and Clone fields.
		if ( acf_get_field_type_prop( $args['field']['type'], 'have_rows' ) === 'single' ) {
			$args['value'] = array( $args['value'] );
		}

		// Add loop.
		$active_loop = acf_add_loop( $args );
	}

	// Return true if next row exists.
	if ( $active_loop && isset( $active_loop['value'][ $active_loop['i'] + 1 ] ) ) {
		return true;
	}

	// Return false if no next row.
	acf_remove_loop( 'active' );
	return false;
}


/*
*  the_row
*
*  This function will progress the global repeater or flexible content value 1 row
*
*  @type    function
*  @date    2/09/13
*  @since   4.3.0
*
*  @param   N/A
*  @return  (array) the current row data
*/

function the_row( $format = false ) {

	// vars
	$i = acf_get_loop( 'active', 'i' );

	// increase
	$i++;

	// update
	acf_update_loop( 'active', 'i', $i );

	// return
	return get_row( $format );

}

function get_row( $format = false ) {

	// vars
	$loop = acf_get_loop( 'active' );

	// bail early if no loop
	if ( ! $loop ) {
		return false;
	}

	// get value
	$value = acf_maybe_get( $loop['value'], $loop['i'] );

	// bail early if no current value
	// possible if get_row_layout() is called before the_row()
	if ( ! $value ) {
		return false;
	}

	// format
	if ( $format ) {

		// vars
		$field = $loop['field'];

		// single row
		if ( acf_get_field_type_prop( $field['type'], 'have_rows' ) === 'single' ) {

			// format value
			$value = acf_format_value( $value, $loop['post_id'], $field );

			// multiple rows
		} else {

			// format entire value
			// - solves problem where cached value is incomplete
			// - no performance issues here thanks to cache
			$value = acf_format_value( $loop['value'], $loop['post_id'], $field );
			$value = acf_maybe_get( $value, $loop['i'] );

		}
	}

	// return
	return $value;

}

function get_row_index() {

	// vars
	$i      = acf_get_loop( 'active', 'i' );
	$offset = acf_get_setting( 'row_index_offset' );

	// return
	return $offset + $i;

}

function the_row_index() {

	echo get_row_index();

}


/*
*  get_row_sub_field
*
*  This function is used inside a 'has_sub_field' while loop to return a sub field object
*
*  @type    function
*  @date    16/05/2016
*  @since   5.3.8
*
*  @param   $selector (string)
*  @return  (array)
*/

function get_row_sub_field( $selector ) {

	// vars
	$row = acf_get_loop( 'active' );

	// bail early if no row
	if ( ! $row ) {
		return false;
	}

	// attempt to find sub field
	$sub_field = acf_get_sub_field( $selector, $row['field'] );

	// bail early if no field
	if ( ! $sub_field ) {
		return false;
	}

	// update field's name based on row data
	$sub_field['name'] = "{$row['name']}_{$row['i']}_{$sub_field['name']}";

	// return
	return $sub_field;

}


/*
*  get_row_sub_value
*
*  This function is used inside a 'has_sub_field' while loop to return a sub field value
*
*  @type    function
*  @date    16/05/2016
*  @since   5.3.8
*
*  @param   $selector (string)
*  @return  (mixed)
*/

function get_row_sub_value( $selector ) {

	// vars
	$row = acf_get_loop( 'active' );

	// bail early if no row
	if ( ! $row ) {
		return null;
	}

	// return value
	if ( isset( $row['value'][ $row['i'] ][ $selector ] ) ) {

		return $row['value'][ $row['i'] ][ $selector ];

	}

	// return
	return null;

}


/*
*  reset_rows
*
*  This function will find the current loop and unset it from the global array.
*  To bo used when loop finishes or a break is used
*
*  @type    function
*  @date    26/10/13
*  @since   5.0.0
*
*  @param   $hard_reset (boolean) completely wipe the global variable, or just unset the active row
*  @return  (boolean)
*/

function reset_rows() {

	// remove last loop
	acf_remove_loop( 'active' );

	// return
	return true;

}


/*
*  has_sub_field()
*
*  This function is used inside a while loop to return either true or false (loop again or stop).
*  When using a repeater or flexible content field, it will loop through the rows until
*  there are none left or a break is detected
*
*  @type    function
*  @since   1.0.3
*  @date    29/01/13
*
*  @param   $field_name (string) the field name
*  @param   $post_id (mixed) the post_id of which the value is saved against
*  @return  (boolean)
*/

function has_sub_field( $field_name, $post_id = false ) {

	// vars
	$r = have_rows( $field_name, $post_id );

	// if has rows, progress through 1 row for the while loop to work
	if ( $r ) {

		the_row();

	}

	// return
	return $r;

}

function has_sub_fields( $field_name, $post_id = false ) {

	return has_sub_field( $field_name, $post_id );

}


/*
*  get_sub_field()
*
*  This function is used inside a 'has_sub_field' while loop to return a sub field value
*
*  @type    function
*  @since   1.0.3
*  @date    29/01/13
*
*  @param   $field_name (string) the field name
*  @return  (mixed)
*/

function get_sub_field( $selector = '', $format_value = true ) {

	// get sub field
	$sub_field = get_sub_field_object( $selector, $format_value );

	// bail early if no sub field
	if ( ! $sub_field ) {
		return false;
	}

	// return
	return $sub_field['value'];

}


/*
*  the_sub_field()
*
*  This function is the same as echo get_sub_field
*
*  @type    function
*  @since   1.0.3
*  @date    29/01/13
*
*  @param   $field_name (string) the field name
*  @return  n/a
*/

function the_sub_field( $field_name, $format_value = true ) {

	$value = get_sub_field( $field_name, $format_value );

	if ( is_array( $value ) ) {

		$value = implode( ', ', $value );

	}

	echo $value;
}


/*
*  get_sub_field_object()
*
*  This function is used inside a 'has_sub_field' while loop to return a sub field object
*
*  @type    function
*  @since   3.5.8.1
*  @date    29/01/13
*
*  @param   $child_name (string) the field name
*  @return  (array)
*/

function get_sub_field_object( $selector, $format_value = true, $load_value = true ) {

	// vars
	$row = acf_get_loop( 'active' );

	// bail early if no row
	if ( ! $row ) {
		return false;
	}

	// attempt to find sub field
	$sub_field = get_row_sub_field( $selector );

	// bail early if no sub field
	if ( ! $sub_field ) {
		return false;
	}

	// load value
	if ( $load_value ) {

		$sub_field['value'] = get_row_sub_value( $sub_field['key'] );

	}

	// format value
	if ( $format_value ) {

		// get value for field
		$sub_field['value'] = acf_format_value( $sub_field['value'], $row['post_id'], $sub_field );

	}

	// return
	return $sub_field;

}


/*
*  get_row_layout()
*
*  This function will return a string representation of the current row layout within a 'have_rows' loop
*
*  @type    function
*  @since   3.0.6
*  @date    29/01/13
*
*  @param   n/a
*  @return  (string)
*/

function get_row_layout() {

	// vars
	$row = get_row();

	// return
	if ( isset( $row['acf_fc_layout'] ) ) {

		return $row['acf_fc_layout'];

	}

	// return
	return false;

}

/**
 * This function is used to add basic shortcode support for the ACF plugin
 * eg. [acf field="heading" post_id="123" format_value="1"]
 *
 * @since 1.1.1
 * @date  29/01/13
 *
 * @param array $atts The shortcode attributes.
 *
 * @return string
 */
function acf_shortcode( $atts ) {
	// Mitigate issue where some AJAX requests can return ACF field data.
	$capability = apply_filters( 'acf/ajax/shortcode_capability', 'edit_posts' );
	if ( wp_doing_ajax() && ( $capability !== false ) && ! current_user_can( $capability ) ) {
		return;
	}

	$atts = shortcode_atts(
		array(
			'field'        => '',
			'post_id'      => false,
			'format_value' => true,
		),
		$atts,
		'acf'
	);

	$access_already_prevented = apply_filters( 'acf/prevent_access_to_unknown_fields', false );
	$filter_applied           = false;

	if ( ! $access_already_prevented ) {
		$filter_applied = true;
		add_filter( 'acf/prevent_access_to_unknown_fields', '__return_true' );
	}

	// Try to get the field value.
	$value = get_field( $atts['field'], $atts['post_id'], $atts['format_value'] );

	if ( $filter_applied ) {
		remove_filter( 'acf/prevent_access_to_unknown_fields', '__return_true' );
	}

	if ( is_array( $value ) ) {
		$value = @implode( ', ', $value );
	}

	return $value;
}
add_shortcode( 'acf', 'acf_shortcode' );


/*
*  update_field()
*
*  This function will update a value in the database
*
*  @type    function
*  @since   3.1.9
*  @date    29/01/13
*
*  @param   $selector (string) the field name or key
*  @param   $value (mixed) the value to save in the database
*  @param   $post_id (mixed) the post_id of which the value is saved against
*  @return  (boolean)
*/

function update_field( $selector, $value, $post_id = false ) {

	// filter post_id
	$post_id = acf_get_valid_post_id( $post_id );

	// get field
	$field = acf_maybe_get_field( $selector, $post_id, false );

	// create dummy field
	if ( ! $field ) {

		$field = acf_get_valid_field(
			array(
				'name' => $selector,
				'key'  => '',
				'type' => '',
			)
		);

	}

	// save
	return acf_update_value( $value, $post_id, $field );

}


/*
*  update_sub_field
*
*  This function will update a value of a sub field in the database
*
*  @type    function
*  @date    2/04/2014
*  @since   5.0.0
*
*  @param   $selector (mixed) the sub field name or key, or an array of ancestors
*  @param   $value (mixed) the value to save in the database
*  @param   $post_id (mixed) the post_id of which the value is saved against
*  @return  (boolean)
*/

function update_sub_field( $selector, $value, $post_id = false ) {

	// vars
	$sub_field = false;

	// get sub field
	if ( is_array( $selector ) ) {

		$post_id   = acf_get_valid_post_id( $post_id );
		$sub_field = acf_maybe_get_sub_field( $selector, $post_id, false );

	} else {

		$post_id   = acf_get_loop( 'active', 'post_id' );
		$sub_field = get_row_sub_field( $selector );

	}

	// bail early if no sub field
	if ( ! $sub_field ) {
		return false;
	}

	// update
	return acf_update_value( $value, $post_id, $sub_field );

}


/*
*  delete_field()
*
*  This function will remove a value from the database
*
*  @type    function
*  @since   3.1.9
*  @date    29/01/13
*
*  @param   $selector (string) the field name or key
*  @param   $post_id (mixed) the post_id of which the value is saved against
*  @return  (boolean)
*/

function delete_field( $selector, $post_id = false ) {

	// filter post_id
	$post_id = acf_get_valid_post_id( $post_id );

	// get field
	$field = acf_maybe_get_field( $selector, $post_id );

	// delete
	return $field ? acf_delete_value( $post_id, $field ) : false;

}


/*
*  delete_sub_field
*
*  This function will delete a value of a sub field in the database
*
*  @type    function
*  @date    2/04/2014
*  @since   5.0.0
*
*  @param   $selector (mixed) the sub field name or key, or an array of ancestors
*  @param   $value (mixed) the value to save in the database
*  @param   $post_id (mixed) the post_id of which the value is saved against
*  @return  (boolean)
*/

function delete_sub_field( $selector, $post_id = false ) {

	return update_sub_field( $selector, null, $post_id );

}


/*
*  add_row
*
*  This function will add a row of data to a field
*
*  @type    function
*  @date    16/10/2015
*  @since   5.2.3
*
*  @param   $selector (string)
*  @param   $row (array)
*  @param   $post_id (mixed)
*  @return  (boolean)
*/

function add_row( $selector, $row = false, $post_id = false ) {

	// filter post_id
	$post_id = acf_get_valid_post_id( $post_id );

	// get field
	$field = acf_maybe_get_field( $selector, $post_id, false );

	// bail early if no field
	if ( ! $field ) {
		return false;
	}

	// get raw value
	$value = acf_get_value( $post_id, $field );

	// ensure array
	$value = acf_get_array( $value );

	// append
	$value[] = $row;

	// update value
	acf_update_value( $value, $post_id, $field );

	// return
	return count( $value );

}


/*
*  add_sub_row
*
*  This function will add a row of data to a field
*
*  @type    function
*  @date    16/10/2015
*  @since   5.2.3
*
*  @param   $selector (string)
*  @param   $row (array)
*  @param   $post_id (mixed)
*  @return  (boolean)
*/

function add_sub_row( $selector, $row = false, $post_id = false ) {

	// vars
	$sub_field = false;

	// get sub field
	if ( is_array( $selector ) ) {

		$post_id   = acf_get_valid_post_id( $post_id );
		$sub_field = acf_maybe_get_sub_field( $selector, $post_id, false );

	} else {

		$post_id   = acf_get_loop( 'active', 'post_id' );
		$sub_field = get_row_sub_field( $selector );

	}

	// bail early if no sub field
	if ( ! $sub_field ) {
		return false;
	}

	// get raw value
	$value = acf_get_value( $post_id, $sub_field );

	// ensure array
	$value = acf_get_array( $value );

	// append
	$value[] = $row;

	// update
	acf_update_value( $value, $post_id, $sub_field );

	// return
	return count( $value );

}


/*
*  update_row
*
*  This function will update a row of data to a field
*
*  @type    function
*  @date    19/10/2015
*  @since   5.2.3
*
*  @param   $selector (string)
*  @param   $i (int)
*  @param   $row (array)
*  @param   $post_id (mixed)
*  @return  (boolean)
*/

function update_row( $selector, $i = 1, $row = false, $post_id = false ) {

	// vars
	$offset = acf_get_setting( 'row_index_offset' );
	$i      = $i - $offset;

	// filter post_id
	$post_id = acf_get_valid_post_id( $post_id );

	// get field
	$field = acf_maybe_get_field( $selector, $post_id, false );

	// bail early if no field
	if ( ! $field ) {
		return false;
	}

	// get raw value
	$value = acf_get_value( $post_id, $field );

	// ensure array
	$value = acf_get_array( $value );

	// update
	$value[ $i ] = $row;

	// update value
	acf_update_value( $value, $post_id, $field );

	// return
	return true;

}


/*
*  update_sub_row
*
*  This function will add a row of data to a field
*
*  @type    function
*  @date    16/10/2015
*  @since   5.2.3
*
*  @param   $selector (string)
*  @param   $row (array)
*  @param   $post_id (mixed)
*  @return  (boolean)
*/

function update_sub_row( $selector, $i = 1, $row = false, $post_id = false ) {

	// vars
	$sub_field = false;
	$offset    = acf_get_setting( 'row_index_offset' );
	$i         = $i - $offset;

	// get sub field
	if ( is_array( $selector ) ) {

		$post_id   = acf_get_valid_post_id( $post_id );
		$sub_field = acf_maybe_get_sub_field( $selector, $post_id, false );

	} else {

		$post_id   = acf_get_loop( 'active', 'post_id' );
		$sub_field = get_row_sub_field( $selector );

	}

	// bail early if no sub field
	if ( ! $sub_field ) {
		return false;
	}

	// get raw value
	$value = acf_get_value( $post_id, $sub_field );

	// ensure array
	$value = acf_get_array( $value );

	// append
	$value[ $i ] = $row;

	// update
	acf_update_value( $value, $post_id, $sub_field );

	// return
	return true;

}


/*
*  delete_row
*
*  This function will delete a row of data from a field
*
*  @type    function
*  @date    19/10/2015
*  @since   5.2.3
*
*  @param   $selector (string)
*  @param   $i (int)
*  @param   $post_id (mixed)
*  @return  (boolean)
*/

function delete_row( $selector, $i = 1, $post_id = false ) {

	// vars
	$offset = acf_get_setting( 'row_index_offset' );
	$i      = $i - $offset;

	// filter post_id
	$post_id = acf_get_valid_post_id( $post_id );

	// get field
	$field = acf_maybe_get_field( $selector, $post_id );

	// bail early if no field
	if ( ! $field ) {
		return false;
	}

	// get value
	$value = acf_get_value( $post_id, $field );

	// ensure array
	$value = acf_get_array( $value );

	// bail early if index doesn't exist
	if ( ! isset( $value[ $i ] ) ) {
		return false;
	}

	// unset
	unset( $value[ $i ] );

	// update
	acf_update_value( $value, $post_id, $field );

	// return
	return true;

}


/*
*  delete_sub_row
*
*  This function will add a row of data to a field
*
*  @type    function
*  @date    16/10/2015
*  @since   5.2.3
*
*  @param   $selector (string)
*  @param   $row (array)
*  @param   $post_id (mixed)
*  @return  (boolean)
*/

function delete_sub_row( $selector, $i = 1, $post_id = false ) {

	// vars
	$sub_field = false;
	$offset    = acf_get_setting( 'row_index_offset' );
	$i         = $i - $offset;

	// get sub field
	if ( is_array( $selector ) ) {

		$post_id   = acf_get_valid_post_id( $post_id );
		$sub_field = acf_maybe_get_sub_field( $selector, $post_id, false );

	} else {

		$post_id   = acf_get_loop( 'active', 'post_id' );
		$sub_field = get_row_sub_field( $selector );

	}

	// bail early if no sub field
	if ( ! $sub_field ) {
		return false;
	}

	// get raw value
	$value = acf_get_value( $post_id, $sub_field );

	// ensure array
	$value = acf_get_array( $value );

	// bail early if index doesn't exist
	if ( ! isset( $value[ $i ] ) ) {
		return false;
	}

	// append
	unset( $value[ $i ] );

	// update
	acf_update_value( $value, $post_id, $sub_field );

	// return
	return true;

}


/*
*  Depreceated Functions
*
*  These functions are outdated
*
*  @type    function
*  @date    4/03/2014
*  @since   1.0.0
*
*  @param   n/a
*  @return  n/a
*/

function create_field( $field ) {

	acf_render_field( $field );

}

function render_field( $field ) {

	acf_render_field( $field );

}

function reset_the_repeater_field() {

	return reset_rows();

}

function the_repeater_field( $field_name, $post_id = false ) {

	return has_sub_field( $field_name, $post_id );

}

function the_flexible_field( $field_name, $post_id = false ) {

	return has_sub_field( $field_name, $post_id );

}

function acf_filter_post_id( $post_id ) {

	return acf_get_valid_post_id( $post_id );

}