acf/prepare_(hook_name)_for_export filter-hookACF 5.0.0

Filters the ACF post array before being returned to the export tool.

Usage

add_filter( 'acf/prepare_(hook_name)_for_export', 'wp_kama_acf_prepare_hook_name_for_export_filter' );

/**
 * Function for `acf/prepare_(hook_name)_for_export` filter-hook.
 * 
 * @param array $post The ACF post array.
 *
 * @return array
 */
function wp_kama_acf_prepare_hook_name_for_export_filter( $post ){
	// filter...
	return $post;
}
$post(array)
The ACF post array.

Changelog

Since 5.0.0 Introduced.

Where the hook is called

ACF_Internal_Post_Type::prepare_post_for_export()
acf/prepare_(hook_name)_for_export
ACF_Field_Group::prepare_post_for_export()
acf/prepare_(hook_name)_for_export
acf/includes/class-acf-internal-post-type.php 839
return apply_filters( "acf/prepare_{$this->hook_name}_for_export", $post );
acf/includes/post-types/class-acf-field-group.php 411
return apply_filters( "acf/prepare_{$this->hook_name}_for_export", $post );

Where the hook is used in Advanced Custom Fields PRO

Usage not found.