Skip to content

wp_all_import_parsed_product_attributes #58

@Programmer095

Description

@Programmer095

WooCo Add-On 3.0.7+

This allows for the use of delimited Attribute names and values, but you must write the custom code to process those values and return them to WP All Import.

add_filter("wp_all_import_parsed_product_attributes", "wpai_wp_all_import_parsed_product_attributes", 10, 3);
/**
 * Filter product attributes.
 * @param array $attributes - Parsed product attributes
 * [
 *    'name' => string, 'value' => string, 'in_taxonomy' => bool, 'is_create_taxonomy_terms' => bool, 'is_visible' => bool, 'in_variation' => bool
 * ]
 * @param int $pid - Product ID
 * @param int $import_id
 */
function wpai_wp_all_import_parsed_product_attributes($attributes, $pid, $import_id) {  
  return $attributes;
}

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions