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