ACF_Post_Type::__construct
Constructs the class.
Метод класса: ACF_Post_Type{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$ACF_Post_Type = new ACF_Post_Type(); $ACF_Post_Type->__construct();
Код ACF_Post_Type::__construct() ACF Post Type:: construct ACF 6.4.2
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 ); }