Automattic\WooCommerce\Admin\API\AI
Patterns::delete_patterns()
Remove patterns generated by AI.
Method of the class: Patterns{}
No Hooks.
Return
WP_Error|WP_REST_Response
.
Usage
$Patterns = new Patterns(); $Patterns->delete_patterns();
Patterns::delete_patterns() Patterns::delete patterns code WC 9.4.2
public function delete_patterns() { PatternsHelper::delete_patterns_ai_data_post(); return rest_ensure_response( array( 'removed' => true ) ); }