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.9.8.1

do_action('woocommerce_before_add_attribute_fields') is found 1 times:

  • /includes/admin/class-wc-admin-attributes.php line 423
    419
    420
    421
    422
    423
    424
    425
    426
    427
    428
    429
    <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>