Home / Admin / Allow Subscriptions Product on BOGO and Add Product Search Field
Duplicate Snippet

Embed Snippet on Your Site

Allow Subscriptions Product on BOGO and Add Product Search Field

Code Preview
php
<?php
add_filter( 'acfw_product_search_allowed_types' , 'acfw_search_add_support_for_subscription_products' );
function acfw_search_add_support_for_subscription_products( $product_types ) {
    $product_types[] = 'subscription';
    $product_types[] = 'variable-subscription';
    $product_types[] = 'subscription_variation';
    return $product_types;
}

Comments

Add a Comment