function initialize()

in web/wp-content/plugins/acf-extended/includes/modules/post-type/module-post-type.php [14:110]


    function initialize(){
        
        $this->name         = 'post_type';
        $this->plural       = 'post_types';
        $this->setting      = 'modules/post_types';
        $this->settings     = 'modules.post_types';
        $this->view         = 'edit.php?post_type=%s';
        $this->register     = 'init';
        
        $this->post_type    = 'acfe-dpt';
        $this->args         = array(
            'label'             => __('Post Types', 'acfe'),
            'show_in_menu'      => 'tools.php',
            'labels'            => array(
                'name'          => __('Post Types', 'acfe'),
                'singular_name' => __('Post Type', 'acfe'),
                'menu_name'     => __('Post Types', 'acfe'),
                'edit_item'     => __('Edit Post Type', 'acfe'),
                'add_new_item'  => __('New Post Type', 'acfe'),
                'enter_title'   => __('Post Type Label', 'acfe'),
            ),
        );
        
        $this->messages     = array(
            'export_title'              => __('Export Post Types', 'acfe'),
            'export_description'        => __('Export Post Types', 'acfe'),
            'export_select'             => __('Select Post Types', 'acfe'),
            'export_not_found'          => __('No post type available.', 'acfe'),
            'export_not_selected'       => __('No post types selected', 'acfe'),
            'export_success_single'     => __('1 post type exported', 'acfe'),
            'export_success_multiple'   => __('%s post types exported', 'acfe'),
            'export_instructions'       => sprintf(__('It is recommended to include this code within the <code>init</code> hook (<a href="%s" target="blank">see documentation</a>).', 'acfe'), esc_url('https://developer.wordpress.org/reference/functions/register_post_type/')),
            'import_title'              => __('Import Post Types', 'acfe'),
            'import_description'        => __('Import Post Types', 'acfe'),
            'import_success_single'     => __('1 post type imported', 'acfe'),
            'import_success_multiple'   => __('%s post types imported', 'acfe'),
        );
    
        $this->export_files = array(
            'single'    => 'post-type',
            'multiple'  => 'post-types',
        );
    
        $this->validate = array('name');
    
        $this->columns  = array(
            'acfe-name'         => __('Name', 'acfe'),
            'acfe-taxonomies'   => __('Taxonomies', 'acfe'),
            'acfe-posts'        => __('Posts', 'acfe'),
        );
    
        $this->item     = array(
            'name'                  => '',
            'label'                 => '',
            'active'                => true,
            'description'           => '',
            'hierarchical'          => false,
            'supports'              => array('title', 'editor'),
            'taxonomies'            => array(),
            'public'                => true,
            'exclude_from_search'   => false,
            'publicly_queryable'    => true,
            'can_export'            => true,
            'delete_with_user'      => null,
            'labels'                => array(),
            'menu_position'         => null,
            'menu_icon'             => 'dashicons-admin-post',
            'show_ui'               => true,
            'show_in_menu'          => true,
            'show_in_nav_menus'     => true,
            'show_in_admin_bar'     => true,
            'has_archive'           => true,
            'rewrite'               => true,
            'capability_type'       => 'post',
            'capabilities'          => array(),
            'map_meta_cap'          => null,
            'show_in_rest'          => false,
            'rest_base'             => null,
            'rest_controller_class' => 'WP_REST_Posts_Controller',
            'acfe_archive_template' => null,
            'acfe_archive_ppp'      => 10,
            'acfe_archive_orderby'  => 'date',
            'acfe_archive_order'    => 'DESC',
            'acfe_archive_meta_key' => '',
            'acfe_archive_meta_type'=> '',
            'acfe_single_template'  => null,
            'acfe_admin_archive'    => false,
            'acfe_admin_ppp'        => 10,
            'acfe_admin_orderby'    => 'date',
            'acfe_admin_order'      => 'DESC',
            'acfe_admin_meta_key'   => '',
            'acfe_admin_meta_type'  => '',
        );
        
        $this->l10n = array('label', 'description', 'labels');
        
    }