File manager - Edit - /home/dubair8/saluempire.com/wp-content/plugins/wp-realestate/includes/taxonomies/class-taxonomy-agency-location.php
Back
<?php /** * Locations * * @package wp-realestate * @author Habq * @license GNU General Public License, version 3 */ if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly } class WP_RealEstate_Taxonomy_Agency_Location{ /** * */ public static function init() { add_action( 'init', array( __CLASS__, 'definition' ), 1 ); } /** * */ public static function definition() { $labels = array( 'name' => __( 'Locations', 'wp-realestate' ), 'singular_name' => __( 'Location', 'wp-realestate' ), 'search_items' => __( 'Search Locations', 'wp-realestate' ), 'all_items' => __( 'All Locations', 'wp-realestate' ), 'parent_item' => __( 'Parent Location', 'wp-realestate' ), 'parent_item_colon' => __( 'Parent Location:', 'wp-realestate' ), 'edit_item' => __( 'Edit', 'wp-realestate' ), 'update_item' => __( 'Update', 'wp-realestate' ), 'add_new_item' => __( 'Add New', 'wp-realestate' ), 'new_item_name' => __( 'New Location', 'wp-realestate' ), 'menu_name' => __( 'Locations', 'wp-realestate' ), ); $rewrite_slug = get_option('wp_realestate_agency_location_slug'); if ( empty($rewrite_slug) ) { $rewrite_slug = _x( 'agency-location', 'Agency location slug - resave permalinks after changing this', 'wp-realestate' ); } $rewrite = array( 'slug' => $rewrite_slug, 'with_front' => false, 'hierarchical' => false, ); register_taxonomy( 'agency_location', 'agency', array( 'labels' => apply_filters( 'wp_realestate_taxomony_agency_location_labels', $labels ), 'hierarchical' => true, 'rewrite' => $rewrite, 'public' => true, 'show_ui' => true, 'show_in_rest' => true ) ); } } WP_RealEstate_Taxonomy_Agency_Location::init();
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.02 |
proxy
|
phpinfo
|
Settings