MemberPress: Pass a Member Phone Number to Stripe

This code will pass the phone number a member added to the membership registration form when…

Minify HTML

function minify_html($buffer) { // Remove comments $buffer = preg_replace('//', '', $buffer); // Remove whitespace $buffer =…

Leave Tasty recipe ratings with WP-PostRatings

The Tasty Recipes rating system works with the default WordPress comment form. However, if you use…

<10

Untitled Snippet

file:///Users/kelseyfisher/Downloads/kdf-carpentry-site.html

Maintain+ Footer Credit

jQuery("footer").append(" Site managed by Maintain+ ")

Adds URL to pages window

add_filter('manage_page_posts_columns', 'my_custom_column', 10); add_action('manage_page_posts_custom_column', 'add_my_custom_column', 10, 2); function my_custom_column($defaults) { $defaults['url'] = 'URL'; return $defaults; }…

add 2 nos

function addNumbers() { // Get input values const num1 = parseFloat(document.getElementById('num1').value); const num2 = parseFloat(document.getElementById('num2').value); //…

Add Tag And End Date To Funded Campaign

Sometimes, it can be useful to do something special for campaigns that have been fully funded.

Modify Software Licensing License Structure

Modify the structure of Software Licensing's license keys.

Keep Emoticons

WordPress converts all emoticons to emoji. This small snippet prevents that, without removing emojis from your…

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');

1 … 70 71 72 73 74 … 237