woosl/api/product_validation/granted_statuses

Share on FacebookShare on Google+Tweet about this on TwitterShare on LinkedInPrint this page

Name
WOOSL/API/product_validation/granted_statuses

Type
Filter

Arguments
$granted_statuses

Description
Add custom statuses for granted product statuses

Example of usage

    add_filter('WOOSL/API/product_validation/granted_statuses', 'WOOSL_API_product_validation_granted_statuses');
    function WOOSL_API_product_validation_granted_statuses( $granted_statuses )
        {
            
            $granted_statuses[] = 'promotion';
               
            return $granted_statuses;   
        }

By woocommerce-sl,posted on June 9, 2020