acf/include_taxonomies хук-событиеACF 6.1

Fires during initialization. Used to add local taxonomies.

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

add_action( 'acf/include_taxonomies', 'wp_kama_acf_include_taxonomies_action' );

/**
 * Function for `acf/include_taxonomies` action-hook.
 * 
 * @param int $ACF_MAJOR_VERSION ACF_MAJOR_VERSION The major version of ACF.
 *
 * @return void
 */
function wp_kama_acf_include_taxonomies_action( $ACF_MAJOR_VERSION ){

	// action...
}
$ACF_MAJOR_VERSION(int)
ACF_MAJOR_VERSION The major version of ACF.

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

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

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

ACF::init()
acf/include_taxonomies
acf/acf.php 413
do_action( 'acf/include_taxonomies', ACF_MAJOR_VERSION );

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

acf/includes/local-json.php 51
add_action( 'acf/include_taxonomies', array( $this, 'include_taxonomies' ) );