WC_Brands_Admin::product_brand_slug_input()publicWC 1.0

Add a slug input box.

Method of the class: WC_Brands_Admin{}

No Hooks.

Return

null. Nothing (null).

Usage

$WC_Brands_Admin = new WC_Brands_Admin();
$WC_Brands_Admin->product_brand_slug_input();

WC_Brands_Admin::product_brand_slug_input() code WC 9.5.1

<?php
public function product_brand_slug_input() {
	$permalink = get_option( 'woocommerce_brand_permalink', '' );
	?>
	<input name="woocommerce_product_brand_slug" type="text" class="regular-text code" value="<?php echo esc_attr( $permalink ); ?>" placeholder="<?php echo esc_attr_x( 'brand', 'slug', 'woocommerce' ); ?>" />
	<?php
}