acf/form/meta_ttl filter-hookACF 6.8.4

Filters how long a _acf_form_meta[] payload remains valid after the page that emitted it was rendered.

Usage

add_filter( 'acf/form/meta_ttl', 'wp_kama_acf_form_meta_ttl_filter' );

/**
 * Function for `acf/form/meta_ttl` filter-hook.
 * 
 * @param int $ttl Allowed age of a meta payload, in seconds.
 *
 * @return int
 */
function wp_kama_acf_form_meta_ttl_filter( $ttl ){
	// filter...
	return $ttl;
}
$ttl(int)
Allowed age of a meta payload, in seconds.

Changelog

Since 6.8.4 Introduced.

Where the hook is called

acf_form_front::merge_form_meta()
acf/form/meta_ttl
acf/includes/forms/form-front.php 494
$ttl = (int) apply_filters( 'acf/form/meta_ttl', DAY_IN_SECONDS );

Where the hook is used in Advanced Custom Fields PRO

Usage not found.