This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* This allows you to use a custom page (custom post type) as your WooCommerce "Terms and Conditions" page. | |
* Once set, you wont need to select the page in Woocommerce settings. | |
**/ | |
function amirhmoradi_force_terms_page_to_wc($page_id) | |
{ | |
return 207; | |
} | |
add_filter('woocommerce_get_terms_page_id', 'amirhmoradi_force_terms_page_to_wc', 10, 2); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* This code helps you start selling software products (subscriptions) with generated license codes on Wordpress with Woocommerce | |
* using 2 plugins: | |
* | |
* [FREE] Wordpress <- Obviously :) | |
* [FREE] Woocommerce <- Complete e-commerce stack for wordpress | |
* | |
* [FREE] License Manager for Woocommerce : https://wordpress.org/plugins/license-manager-for-woocommerce/ | |
* [49$] SUMO Subscriptions: https://codecanyon.net/item/sumo-subscriptions-woocommerce-subscription-system/16486054 | |
* |
NewerOlder