woocommerce_admin_meta_boxes_prepare_attribute

woocommerce_admin_meta_boxes_prepare_attribute

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

apply_filters('woocommerce_admin_meta_boxes_prepare_attribute') is found 1 times:

  • /includes/admin/meta-boxes/class-wc-meta-box-product-data.php line 278
    				$attribute->set_position( $attribute_position[ $i ] );
    				$attribute->set_visible( isset( $attribute_visibility[ $i ] ) );
    				$attribute->set_variation( isset( $attribute_variation[ $i ] ) );
    				/* phpcs:disable WooCommerce.Commenting.CommentHooks.MissingHookComment */
    				$attributes[] = apply_filters( 'woocommerce_admin_meta_boxes_prepare_attribute', $attribute, $data, $i );
    				/* phpcs: enable */
    			}
    		}
    		return $attributes;
    	}