WC_Brands_Admin::add_brand_base_setting()
Add brand base permalink setting.
Method of the class: WC_Brands_Admin{}
No Hooks.
Return
null
. Nothing (null).
Usage
$WC_Brands_Admin = new WC_Brands_Admin(); $WC_Brands_Admin->add_brand_base_setting();
WC_Brands_Admin::add_brand_base_setting() WC Brands Admin::add brand base setting code WC 9.5.1
public function add_brand_base_setting() { $screen = get_current_screen(); if ( ! $screen || 'options-permalink' !== $screen->id ) { return; } add_settings_field( 'woocommerce_product_brand_slug', __( 'Product brand base', 'woocommerce' ), array( $this, 'product_brand_slug_input' ), 'permalink', 'optional' ); $this->save_permalink_settings(); }