Add WPCode Custom Field Smart Tag (copy)

add_filter( ‘wpcode_smart_tags’, function( $tags ) { $tags[‘custom’] = array( ‘label’ => ‘Custom’, ‘tags’ => array( ‘custom_field_tag’ => array( ‘label’ => ‘Custom Field Tag’, ‘function’ => ‘wpcode_custom_field_tag’, ), ), ); return $tags; } ); function wpcode_custom_field_tag() { // Replace custom_field_tag below…Continue reading

MemberPress: Display Purchase Information With Shortcode

function custom_purchase_info_shortcode() { global $wpdb; // Get the current user ID $user_id = get_current_user_id(); // Get the latest MemberPress transaction for this user $latest_transaction = $wpdb->get_row( $wpdb->prepare( “SELECT * FROM {$wpdb->prefix}mepr_transactions WHERE user_id = %d ORDER BY id DESC LIMIT…Continue reading

Trigger FlowMattic Workflow MegaRabatt

// Author: Sumaiya, Clikup Doc: https://app.clickup.com/36636088/v/dc/12y1dr-22535/12y1dr-25275 function trigger_flowmattic_action_on_landing() { // Get the ‘cid’ and ’email’ parameters from the URL $cid = isset($_GET[‘cid’]) ? sanitize_text_field($_GET[‘cid’]) : ”; // Fetch ‘cid’ and sanitize it $email = isset($_GET[’email’]) ? sanitize_email($_GET[’email’]) : ”; //…Continue reading