Set Minimum total purchase amount
add_action( 'woocommerce_check_cart_items', 'required_min_cart_subtotal_amount' ); function required_min_cart_subtotal_amount() { // HERE Set minimum cart total amount $minimum_amount =…
Current Year
function current_year_shortcode() { return date('Y'); } add_shortcode('year', 'current_year_shortcode');
Add user registration date
/* * Creating a column (it is also possible to remove some default ones) */ add_filter(…
Gina
Chatbot
MemberPress: Add Custom Field to Transactions Table
This code snippet will add data collected through a custom field on MemberPress registration forms to…
Man
Entertainment
Remove Download Links
Remove download links from checkout page for all downloads.
Remove hyperlink from name field
add_filter('preprocess_comment', 'remove_links_from_comment_author'); function remove_links_from_comment_author($commentdata) { // Regular expression to detect hyperlinks $pattern = '/
Bing Webmaster
Bing Webmaster snippet
Changing Text For Suggestion Donation Descriptions
You can place this code in your theme functions.php or use WPCode.
test onlinde
blah blah blah blah
Send Site Notifications to a BCC Address
This snippet will ensure all your site’s outgoing emails are also sent to a specific BCC…
MemberPress: Send Tax (e.g. VAT) to Stripe
This code snippet will send the user’s VAT/TAX number to Stripe when that user registers for…
Set State Field To Us States Dropdown With Default
Change the "State" field into a "Province" field.