My User custom post
fasda
// Register Custom Post Type function custom_user_page_post_type() { $labels = array( 'name' => 'User Pages', 'singular_name' => 'User Page', 'menu_name' => 'User Pages', 'name_admin_bar' => 'User Pages', 'archives' => 'Pages Archives', 'attributes' => 'Page Attributes', 'parent_item_colon' => 'Parent Page:', 'all_items' => 'All Pages', 'add_new_item' => 'Add New User Page', 'add_new' => 'Add New Page', 'new_item' => 'New Page', 'edit_item' => 'Edit User Page', 'update_item' => 'Update Page', 'view_item' => 'View Page', 'view_items' => 'View Pages', 'search_items' => 'Search Item', 'not_found' => 'Page Not found', 'not_found_in_trash' => 'Page Not found in Trash', 'featured_image' => 'Featured Image', 'set_featured_image' => 'Set featured image', 'remove_featured_image' => 'Remove featured image', 'use_featured_image' => 'Use as featured image', 'insert_into_item' => 'Insert into item', 'uploaded_to_this_item' => 'Uploaded to this item', 'items_list' => 'Pages list', 'items_list_navigation' => 'Items list navigation', 'filter_items_list' => 'Filter Pages list', ); $args = array( 'label' => 'User Page', 'description' => 'User Pages', 'labels' => $labels, 'supports' => array( 'title', 'editor', 'excerpt', 'author', 'thumbnail', 'comments', 'trackbacks', 'revisions', 'custom-fields', 'page-attributes', 'post-formats', ), 'taxonomies' => array( 'category', 'post_tag' ), 'hierarchical' => false, 'public' => true, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 5, 'menu_icon' => 'dashicons dashicons-images-alt2', 'show_in_admin_bar' => true, 'show_in_nav_menus' => true, 'can_export' => true, 'has_archive' => true, 'exclude_from_search' => true, 'publicly_queryable' => true, 'capability_type' => 'post', 'show_in_rest' => true, ); register_post_type( 'user_page', $args ); } add_action( 'init', 'custom_user_page_post_type', 0 );