ACF_Post_Type::__construct
Constructs the class.
Method of the class: ACF_Post_Type{}
No Hooks.
Returns
null. Nothing (null).
Usage
$ACF_Post_Type = new ACF_Post_Type(); $ACF_Post_Type->__construct();
ACF_Post_Type::__construct() ACF Post Type:: construct code ACF 6.8.8
public function __construct() {
$this->register_post_type();
// Include admin classes in admin.
if ( is_admin() ) {
acf_include( 'includes/admin/admin-internal-post-type-list.php' );
acf_include( 'includes/admin/admin-internal-post-type.php' );
acf_include( 'includes/admin/post-types/admin-post-type.php' );
acf_include( 'includes/admin/post-types/admin-post-types.php' );
}
parent::__construct();
add_action( 'acf/init', array( $this, 'register_post_types' ), 6 );
add_filter( 'enter_title_here', array( $this, 'enter_title_here' ), 10, 2 );
}