ACF_Internal_Post_Type::prepare_post_for_export
Returns a modified ACF post array ready for export.
Метод класса: ACF_Internal_Post_Type{}
Хуки из метода
Возвращает
Массив.
Использование
$ACF_Internal_Post_Type = new ACF_Internal_Post_Type(); $ACF_Internal_Post_Type->prepare_post_for_export( $post );
- $post(массив)
- The ACF post array.
По умолчанию:array()
Список изменений
| С версии 6.1 | Введена. |
Код ACF_Internal_Post_Type::prepare_post_for_export() ACF Internal Post Type::prepare post for export ACF 6.4.2
public function prepare_post_for_export( $post = array() ) {
// Remove args.
acf_extract_vars( $post, array( 'ID', 'local', '_valid' ) );
/**
* Filters the ACF post array before being returned to the export tool.
*
* @date 12/02/2014
* @since 5.0.0
*
* @param array $post The ACF post array.
*/
return apply_filters( "acf/prepare_{$this->hook_name}_for_export", $post );
}