woocommerce_grant_product_download_permissions

woocommerce_grant_product_download_permissions

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

do_action('woocommerce_grant_product_download_permissions') is found 1 times:

  • /includes/wc-order-functions.php line 457
    		}
    	}
    
    	$order->get_data_store()->set_download_permissions_granted( $order, true );
    	do_action( 'woocommerce_grant_product_download_permissions', $order_id );
    }
    add_action( 'woocommerce_order_status_completed', 'wc_downloadable_product_permissions' );
    add_action( 'woocommerce_order_status_processing', 'wc_downloadable_product_permissions' );
    
    /**
     * Clear all transients cache for order data.