PATH:
home
/
letacommog
/
entrepro
/
wp-content
/
themes
/
rehub
/
functions
<?php //CREATE BRAND TAXONOMY if ( ! defined( 'ABSPATH' ) ) { exit; } if (!class_exists('WC_RH_Store_Taxonomy')) { class WC_RH_Store_Taxonomy { /** * Constructor. */ public function __construct() { add_action( 'woocommerce_register_taxonomy', array( $this, 'woo_product_store_init' ) ); add_action( 'current_screen', array( $this, 'conditional_includes' ) ); } /** * Create Store Taxonomy */ public function woo_product_store_init() { $permalinks = get_option( 'woocommerce_permalinks' ); register_taxonomy( 'store', 'product', array( 'labels' => array( 'name' => __( 'Brand', 'rehub_framework' ), 'singular_name' => __( 'Brand', 'rehub_framework' ), 'search_items' => __( 'Search brand', 'rehub_framework' ), 'all_items' => __( 'All brands', 'rehub_framework' ), 'parent_item' => __( 'Parent brand', 'rehub_framework' ), 'parent_item_colon' => __( 'Parent brand:', 'rehub_framework' ), 'edit_item' => __( 'Edit brand', 'rehub_framework' ), 'update_item' => __( 'Update brand', 'rehub_framework' ), 'add_new_item' => __( 'Add new brand', 'rehub_framework' ), 'new_item_name' => __( 'New brand name', 'rehub_framework' ), 'menu_name' => __( 'Brand', 'rehub_framework' ), ), 'show_ui' => true, 'show_admin_column' => true, 'update_count_callback' => '_update_post_term_count', 'hierarchical' => true, 'public' => true, 'query_var' => empty( $permalinks['store_base'] ) ? 'brand' : $permalinks['store_base'], 'show_in_quick_edit' => true, 'rewrite' =>array( 'slug' => empty( $permalinks['store_base'] ) ? 'brand' : $permalinks['store_base'], 'with_front' => false, 'hierarchical' => true, ), ) ); } /** * Include admin files conditionally. */ public function conditional_includes() { if ( ! $screen = get_current_screen() ) { return; } switch ( $screen->id ) { case 'options-permalink' : include( 'woo_store_permalink_class.php' ); break; } } } } return new WC_RH_Store_Taxonomy();
[+]
..
[-] vc_functions_theme.php
[edit]
[+]
vc
[+]
vc_templates
[-] member_helper_functions.php
[edit]
[-] affiliate_functions.php
[edit]
[-] user_review_functions.php
[edit]
[-] edd_functions.php
[edit]
[-] thumbandhot.php
[edit]
[-] taxonomy_meta.php
[edit]
[-] video_class.php
[edit]
[-] review_functions.php
[edit]
[-] user_review_no_editor.php
[edit]
[-] woo_store_permalink_class.php
[edit]
[-] woo_store_taxonomy_class.php
[edit]
[-] woo_functions.php
[edit]
[-] vc_functions.php
[edit]
[-] ajax_helper_functions.php
[edit]
[-] commentplus.php
[edit]
[-] helper_functions.php
[edit]
[-] sidebar_functions.php
[edit]
[-] rehub_ajax.php
[edit]