Warning: This method has been deprecated.

WC_REST_Product_Attributes_V1_Controller::validate_attribute_slug( string $slug, bool $new_data = true )

Validate attribute slug.


Description Description


Parameters Parameters

$slug

(Required) The slug to validate.

$new_data

(Optional) If we are creating new data.

Default value: true


Top ↑

Return Return

(bool|WP_Error)


Top ↑

Source Source

File: includes/rest-api/Controllers/Version1/class-wc-rest-product-attributes-v1-controller.php


			

Top ↑

Changelog Changelog

Changelog
Version Description
3.2.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.