acf/include_field_types хук-событиеACF 5.0.0

Fires after field types have been included.

Использование

add_action( 'acf/include_field_types', 'wp_kama_acf_include_field_types_action' );

/**
 * Function for `acf/include_field_types` action-hook.
 * 
 * @param int $ACF_FIELD_API_VERSION ACF_FIELD_API_VERSION The field API version.
 *
 * @return void
 */
function wp_kama_acf_include_field_types_action( $ACF_FIELD_API_VERSION ){

	// action...
}
$ACF_FIELD_API_VERSION(int)
ACF_FIELD_API_VERSION The field API version.

Список изменений

С версии 5.0.0 Введена.

Где вызывается хук

ACF::init()
acf/include_field_types
acf/acf.php 297
do_action( 'acf/include_field_types', ACF_FIELD_API_VERSION );

Где используется хук в Advanced Custom Fields PRO

acf/pro/acf-pro.php 41
add_action( 'acf/include_field_types', array( $this, 'include_field_types' ), 5 );