array( 'name' => __( 'Forms' ), 'singular_name' => __( 'Form' ), 'add_new' => __( 'Add New' ), 'add_new_item' => __('Add New Form' ), 'edit_item' => __('Edit Form'), 'not_found' => __('You did not create any forms yet'), 'not_found_in_trash' => __('Nothing found in Trash'), 'search_items' => __('Search Forms') ), 'capabilities' => array( 'edit_post' => 'manage_options', 'read_post' => 'manage_options', 'delete_post' => 'manage_options', 'edit_posts' => 'manage_options', 'edit_others_posts' => 'manage_options', 'delete_posts' => 'manage_options', 'publish_posts' => 'manage_options', 'read_private_posts' => 'manage_options' ), 'show_ui' => true, 'show_in_menu' => false, 'public' => false, 'show_in_rest' => true, 'supports' => array('title') ) ); if ( UM()->options()->get( 'members_page' ) || ! get_option( 'um_options' ) ) { register_post_type( 'um_directory', array( 'labels' => array( 'name' => __( 'Member Directories' ), 'singular_name' => __( 'Member Directory' ), 'add_new' => __( 'Add New' ), 'add_new_item' => __('Add New Member Directory' ), 'edit_item' => __('Edit Member Directory'), 'not_found' => __('You did not create any member directories yet'), 'not_found_in_trash' => __('Nothing found in Trash'), 'search_items' => __('Search Member Directories') ), 'capabilities' => array( 'edit_post' => 'manage_options', 'read_post' => 'manage_options', 'delete_post' => 'manage_options', 'edit_posts' => 'manage_options', 'edit_others_posts' => 'manage_options', 'delete_posts' => 'manage_options', 'publish_posts' => 'manage_options', 'read_private_posts' => 'manage_options' ), 'show_ui' => true, 'show_in_menu' => false, 'public' => false, 'show_in_rest' => true, 'supports' => array('title') ) ); } } } }