WC_Brands_Admin::add_brand_base_setting()
Add brand base permalink setting.
Метод класса: WC_Brands_Admin{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$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 WC 9.4.2
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(); }