acf/include_field_types
Fires after field types have been included.
Usage
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.
Changelog
| Since 5.0.0 | Introduced. |
Where the hook is called
acf/include_field_types
acf/acf.php 410
do_action( 'acf/include_field_types', ACF_FIELD_API_VERSION );
Where the hook is used in Advanced Custom Fields PRO
acf/pro/acf-pro.php 64
add_action( 'acf/include_field_types', array( $this, 'include_field_types' ), 5 );