Sindbad~EG File Manager
<?php
use RealPress\Helpers\Settings;
use RealPress\Helpers\General;
return array(
'post_types' => apply_filters(
'realpress/filter/config/post_types',
array(
REALPRESS_PROPERTY_CPT => array(
'labels' => array(
'name' => _x( 'Property Listing', 'admin menu', 'realpress' ),
'singular_name' => _x( 'Property', 'admin menu', 'realpress' ),
'menu_name' => _x( 'Properties', 'admin bar', 'realpress' ),
'name_admin_bar' => _x( 'Property', 'realpress' ),
'add_new' => esc_html__( 'Add New', 'realpress' ),
'add_new_item' => esc_html__( 'Add New Property', 'realpress' ),
'new_item' => esc_html__( 'New Property', 'realpress' ),
'edit_item' => esc_html__( 'Edit Property', 'realpress' ),
'view_item' => esc_html__( 'View Property', 'realpress' ),
'all_items' => esc_html__( 'All Properties', 'realpress' ),
'search_items' => esc_html__( 'Search Properties', 'realpress' ),
'parent_item_colon' => esc_html__( 'Parent Properties:', 'realpress' ),
'not_found' => esc_html__( 'No property found.', 'realpress' ),
'not_found_in_trash' => esc_html__( 'No property found in the Trash.', 'realpress' ),
),
'description' => esc_html__( 'Property Listing Description', 'realpress' ),
'public' => true,
'menu_icon' => General::get_logo(),
'publicly_queryable' => true,
'show_ui' => true,
'show_in_menu' => true,
'query_var' => true,
'show_in_rest' => true,
'rest_base' => 'realpress-property',
'rest_controller_class' => 'WP_REST_Posts_Controller',
'rewrite' => array(
'slug' => Settings::get_property_slug(),
'with_front' => false,
),
'map_meta_cap' => true,
'has_archive' => true,
'hierarchical' => false,
'menu_position' => null,
// 'taxonomies' => array( 'category', 'post_tag' ),
'supports' => array(
'title',
'editor',
'author',
'thumbnail',
'excerpt',
'comments',
'custom-fields',
'page-attributes',
),
'capability_type' => array(
REALPRESS_PROPERTY_CPT,
'realpress-properties',
),
),
)
),
'taxonomies' => apply_filters(
'realpress/filter/config/taxonomies',
array(
'realpress-type' => array(
'hierarchical' => true,
'show_ui' => true,
'show_in_rest' => true,
'rest_base' => 'realpress-type',
'rest_controller_class' => 'WP_REST_Terms_Controller',
'show_admin_column' => true,
'query_var' => true,
'rewrite' => array(
'slug' => 'realpress-type',
),
'post_types' => array( REALPRESS_PROPERTY_CPT ),
'labels' => array(
'name' => _x( 'Type', 'taxonomy general name', 'realpress' ),
'singular_name' => _x( 'Type', 'taxonomy singular name', 'realpress' ),
'search_items' => esc_html__( 'Search Types', 'realpress' ),
'all_items' => esc_html__( 'All Types', 'realpress' ),
'parent_item' => esc_html__( 'Parent Types', 'realpress' ),
'parent_item_colon' => esc_html__( 'Parent Types:', 'realpress' ),
'edit_item' => esc_html__( 'Edit Type', 'realpress' ),
'update_item' => esc_html__( 'Update Type', 'realpress' ),
'add_new_item' => esc_html__( 'Add New Type', 'realpress' ),
'new_item_name' => esc_html__( 'New Type Name', 'realpress' ),
'menu_name' => esc_html__( 'Type', 'realpress' ),
),
),
'realpress-location' => array(
'hierarchical' => true,
'show_ui' => true,
'show_in_rest' => true,
'rest_base' => 'realpress-location',
'rest_controller_class' => 'WP_REST_Terms_Controller',
'show_admin_column' => true,
'query_var' => true,
'rewrite' => array(
'slug' => 'realpress-location',
),
'post_types' => array( REALPRESS_PROPERTY_CPT ),
'labels' => array(
'name' => _x( 'Location', 'taxonomy general name', 'realpress' ),
'singular_name' => _x( 'Location', 'taxonomy singular name', 'realpress' ),
'search_items' => esc_html__( 'Search Locations', 'realpress' ),
'all_items' => esc_html__( 'All Locations', 'realpress' ),
'parent_item' => esc_html__( 'Parent Locations', 'realpress' ),
'parent_item_colon' => esc_html__( 'Parent Locations:', 'realpress' ),
'edit_item' => esc_html__( 'Edit Location', 'realpress' ),
'update_item' => esc_html__( 'Update Location', 'realpress' ),
'add_new_item' => esc_html__( 'Add New Location', 'realpress' ),
'new_item_name' => esc_html__( 'New Location Name', 'realpress' ),
'menu_name' => esc_html__( 'Location', 'realpress' ),
),
),
'realpress-feature' => array(
'hierarchical' => true,
'show_ui' => true,
'show_in_rest' => true,
'rest_base' => 'realpress-feature',
'rest_controller_class' => 'WP_REST_Terms_Controller',
'show_admin_column' => true,
'query_var' => true,
'rewrite' => array(
'slug' => 'realpress-feature',
),
'post_types' => array( REALPRESS_PROPERTY_CPT ),
'labels' => array(
'name' => _x( 'Feature', 'taxonomy general name', 'realpress' ),
'singular_name' => _x( 'Feature', 'taxonomy singular name', 'realpress' ),
'search_items' => esc_html__( 'Search Features', 'realpress' ),
'all_items' => esc_html__( 'All Features', 'realpress' ),
'parent_item' => esc_html__( 'Parent Features', 'realpress' ),
'parent_item_colon' => esc_html__( 'Parent Features:', 'realpress' ),
'edit_item' => esc_html__( 'Edit Feature', 'realpress' ),
'update_item' => esc_html__( 'Update Feature', 'realpress' ),
'add_new_item' => esc_html__( 'Add New Feature', 'realpress' ),
'new_item_name' => esc_html__( 'New Feature Name', 'realpress' ),
'menu_name' => esc_html__( 'Feature', 'realpress' ),
),
),
'realpress-status' => array(
'hierarchical' => true,
'show_ui' => true,
'show_in_rest' => true,
'rest_base' => 'realpress-status',
'rest_controller_class' => 'WP_REST_Terms_Controller',
'show_admin_column' => true,
'query_var' => true,
'rewrite' => array(
'slug' => 'realpress-status',
),
'post_types' => array( REALPRESS_PROPERTY_CPT ),
'labels' => array(
'name' => _x( 'Status', 'taxonomy general name', 'realpress' ),
'singular_name' => _x( 'Status', 'taxonomy singular name', 'realpress' ),
'search_items' => esc_html__( 'Search Statuses', 'realpress' ),
'all_items' => esc_html__( 'All Statuses', 'realpress' ),
'parent_item' => esc_html__( 'Parent Statuses', 'realpress' ),
'parent_item_colon' => esc_html__( 'Parent Statuses:', 'realpress' ),
'edit_item' => esc_html__( 'Edit Status', 'realpress' ),
'update_item' => esc_html__( 'Update Status', 'realpress' ),
'add_new_item' => esc_html__( 'Add New Status', 'realpress' ),
'new_item_name' => esc_html__( 'New Status Name', 'realpress' ),
'menu_name' => esc_html__( 'Status', 'realpress' ),
),
),
'realpress-energy-class' => array(
'hierarchical' => true,
'show_ui' => true,
'show_in_rest' => true,
'rest_base' => 'realpress-energy-class',
'rest_controller_class' => 'WP_REST_Terms_Controller',
'show_admin_column' => true,
'query_var' => true,
'rewrite' => array(
'slug' => 'realpress-energy-class',
),
'post_types' => array( REALPRESS_PROPERTY_CPT ),
'labels' => array(
'name' => _x( 'Energy Class', 'taxonomy general name', 'realpress' ),
'singular_name' => _x( 'Energy Class', 'taxonomy singular name', 'realpress' ),
'search_items' => esc_html__( 'Search Energy Class', 'realpress' ),
'all_items' => esc_html__( 'All Energy Class', 'realpress' ),
'parent_item' => esc_html__( 'Parent Energy Class', 'realpress' ),
'parent_item_colon' => esc_html__( 'Parent Energy Class:', 'realpress' ),
'edit_item' => esc_html__( 'Edit Energy Class', 'realpress' ),
'update_item' => esc_html__( 'Update Energy Class', 'realpress' ),
'add_new_item' => esc_html__( 'Add New Energy Class', 'realpress' ),
'new_item_name' => esc_html__( 'New Energy Class Name', 'realpress' ),
'menu_name' => esc_html__( 'Energy Class', 'realpress' ),
),
),
'realpress-label' => array(
'hierarchical' => true,
'show_ui' => true,
'show_in_rest' => true,
'rest_base' => 'realpress-label',
'rest_controller_class' => 'WP_REST_Terms_Controller',
'show_admin_column' => true,
'query_var' => true,
'rewrite' => array(
'slug' => 'realpress-label',
),
'post_types' => array( REALPRESS_PROPERTY_CPT ),
'labels' => array(
'name' => _x( 'Label', 'taxonomy general name', 'realpress' ),
'singular_name' => _x( 'Label', 'taxonomy singular name', 'realpress' ),
'search_items' => esc_html__( 'Search Labels', 'realpress' ),
'all_items' => esc_html__( 'All Labels', 'realpress' ),
'parent_item' => esc_html__( 'Parent Labels', 'realpress' ),
'parent_item_colon' => esc_html__( 'Parent Labels:', 'realpress' ),
'edit_item' => esc_html__( 'Edit Label', 'realpress' ),
'update_item' => esc_html__( 'Update Label', 'realpress' ),
'add_new_item' => esc_html__( 'Add New Label', 'realpress' ),
'new_item_name' => esc_html__( 'New Label Name', 'realpress' ),
'menu_name' => esc_html__( 'Label', 'realpress' ),
),
),
)
),
'post_statuses' => apply_filters(
'realpress/filter/config/statuses',
array(
'reject' => array(
'label' => esc_html__( 'Reject', 'realpress' ),
'public' => false,
'protected' => true,
'exclude_from_search' => false,
'private' => true,
'show_in_admin_all_list' => true,
'icon' => 'la la-refresh',
'show_in_admin_status_list' => true,
'label_count' => _n_noop(
'Reject <span class="count">(%s)</span>',
'Reject <span class="count">(%s)</span>',
'realpress'
),
),
)
),
);
Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists