acf/form/meta_ttl
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/meta_ttl
acf/includes/forms/form-front.php 494
$ttl = (int) apply_filters( 'acf/form/meta_ttl', DAY_IN_SECONDS );