acf/include_post_types
Fires during initialization. Used to add local post types.
Usage
add_action( 'acf/include_post_types', 'wp_kama_acf_include_post_types_action' );
/**
* Function for `acf/include_post_types` action-hook.
*
* @param int $ACF_MAJOR_VERSION ACF_MAJOR_VERSION The major version of ACF.
*
* @return void
*/
function wp_kama_acf_include_post_types_action( $ACF_MAJOR_VERSION ){
// action...
}
- $ACF_MAJOR_VERSION(int)
- ACF_MAJOR_VERSION The major version of ACF.
Changelog
| Since 6.1 | Introduced. |
Where the hook is called
acf/include_post_types
acf/acf.php 462
do_action( 'acf/include_post_types', ACF_MAJOR_VERSION );
Where the hook is used in Advanced Custom Fields PRO
acf/includes/local-json.php 66
add_action( 'acf/include_post_types', array( $this, 'include_post_types' ) );