Auto register guests that purchase

function wc_register_guests( $order_id ) { // get all the order data $order = new WC_Order($order_id); //get…

Carla Mawyin
<10

ai content idea generator

function openai_generate_text() { // Get the topic from the AJAX request $prompt = $_POST['prompt']; $prompt ="generate…

quiz

// setup console.log("running"); let q = 1; const submit = document.getElementById("next-button"); const question = document.getElementById("question"); //…

Free tiktok views

Get free tiktok views growing

Remove Terms Fields

If you would like to enable the terms and conditions, privacy policy and user contact consent…

Send New User Notifications

Send the new user notification after someone registers through the Charitable registration form.

Prevent Duplicate Purchases

Prevents logged-in customers from purchasing an item twice.

MemberPress: Display User's Course Progress in MemberPress Courses

The code snippet registers a new shortcode: [mpcs_user_courses_progress]. Adding this shortcode will display all MemberPress courses…

google tag

google code

Raymond Berry
<10

Add extra shipping providers for vendor tracking numbers

$shipping_providers = array( 'Australia' => array( 'Australia Post' => 'https://auspost.com.au/mypost/track/#/details/%1$s', 'FedEx' => 'https://www.fedex.com/apps/fedextrack/?tracknumbers=%1$s&cntry_code=au', 'Fastway Couriers' =>…

WP Simple Pay: Conditionally Dequeue Scripts & Styles

Conditionally dequeue scripts & styles based on set conditions. In this example, we remove all plugin…

Google Ads

Bud Hausman
<10

MemberPress: Adding Credit Card and Expiry Information to Subscriptions Table

This snippet adds a new column to the table under the Subscriptions tab on the Account…

expose acf

function expose_acf_to_rest() { register_rest_field('game_state', 'acf', [ 'get_callback' => function($post_arr) { return get_fields($post_arr['id']); }, 'update_callback' => null,…

1 47 48 49 50 51 219