We are looking for a way to automatically add a product attribute if the product title contains a value of an attribute, and the product attribute does not already exist.
The function we are looking for is as follows:
If 'post' does not contain attribute:
Then, if 'post_title' Contains 'pa_brand', 'pa_color', 'pa_size', 'pa_gender' add as attribute