woocommerce_before_add_attribute_fields

woocommerce_before_add_attribute_fields

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action

See hook in core

Displaying hooks found in version: woocommerce.8.7.0

do_action('woocommerce_before_add_attribute_fields') is found 1 times:

  • /includes/admin/class-wc-admin-attributes.php line 423
    						<div class="form-wrap">
    							<h2><?php esc_html_e( 'Add new attribute', 'woocommerce' ); ?></h2>
    							<p><?php esc_html_e( 'Attributes let you define extra product data, such as size or color. You can use these attributes in the shop sidebar using the "layered nav" widgets.', 'woocommerce' ); ?></p>
    							<form action="edit.php?post_type=product&amp;page=product_attributes" method="post">
    								<?php do_action( 'woocommerce_before_add_attribute_fields' ); ?>
    
    								<div class="form-field">
    									<label for="attribute_label"><?php esc_html_e( 'Name', 'woocommerce' ); ?></label>
    									<input name="attribute_label" id="attribute_label" type="text" value="" />
    									<p class="description"><?php esc_html_e( 'Name for the attribute (shown on the front-end).', 'woocommerce' ); ?></p>
    								</div>