WC_Brands_Admin::init_form_fields()
Prepare form fields to be used in the various tabs.
Метод класса: WC_Brands_Admin{}
Хуки из метода
Возвращает
null
. Ничего (null).
Использование
$WC_Brands_Admin = new WC_Brands_Admin(); $WC_Brands_Admin->init_form_fields();
Код WC_Brands_Admin::init_form_fields() WC Brands Admin::init form fields WC 9.4.2
public function init_form_fields() { /** * Filter Brands settings. * * @since 9.4.0 * * @param array $settings Brands settings. */ $this->settings = apply_filters( 'woocommerce_brands_settings_fields', array( array( 'name' => __( 'Brands Archives', 'woocommerce' ), 'type' => 'title', 'desc' => '', 'id' => 'brands_archives', ), array( 'name' => __( 'Show description', 'woocommerce' ), 'desc' => __( 'Choose to show the brand description on the archive page. Turn this off if you intend to use the description widget instead. Please note: this is only for themes that do not show the description.', 'woocommerce' ), 'tip' => '', 'id' => 'wc_brands_show_description', 'css' => '', 'std' => 'yes', 'type' => 'checkbox', ), array( 'type' => 'sectionend', 'id' => 'brands_archives', ), ) ); }