[clinical_pilot]

/** * Plugin Name: Clinical Pilot – Main (Toggle Fields) * Description: Provides [clinical_pilot] with a toggle for structured (4 fields) vs. all-in-one input, plus a complete specialty list. Preserves vitals, AI Preferences, technical summary, and rating block. No logs.…Continue reading

Display Roster Entry

/** Display Roster Entry **/ // FOR DEBUGGING ONLY //$data = serialize(array(“Red”, “Green”, “Blue”)); //echo $data . ““; // //$test = unserialize($data); //var_dump($test); // $profile_id = um_profile_id(); $user = get_user($profile_id); $email = $user->email; //FOR DEBUGGING ONLY: // $email = “[email protected]”;…Continue reading

EvocaLux: Display Logged-In Username

function evocalux_display_username() { if ( is_user_logged_in() ) { $current_user = wp_get_current_user(); return esc_html( $current_user->display_name ); } else { return ‘beautiful soul’; } } add_shortcode( ‘user_name’, ‘evocalux_display_username’ );Continue reading

EvocaLux User Variable

function evocalux_display_username() { $current_user = wp_get_current_user(); if ( is_user_logged_in() && ! empty( $current_user->display_name ) ) { return esc_html( $current_user->display_name ); } else { return ‘beautiful soul’; } } add_shortcode(‘user_name’, ‘evocalux_display_username’);Continue reading

Display the Last Updated Date

$u_time = get_the_time( ‘U’ ); $u_modified_time = get_the_modified_time( ‘U’ ); // Only display modified date if 24hrs have passed since the post was published. if ( $u_modified_time >= $u_time + 86400 ) { $updated_date = get_the_modified_time( ‘Y-m-d’ ); $updated_time =…Continue reading

Máscara CPF 2

// Carrega a biblioteca Inputmask var script = document.createElement(‘script’); script.src = “https://cdnjs.cloudflare.com/ajax/libs/jquery.inputmask/5.0.8/jquery.inputmask.min.js”; script.onload = function () { aplicarMascaraCPF(); }; document.head.appendChild(script); // Função que aplica a máscara e a validação no campo CPF function aplicarMascaraCPF() { if (typeof jQuery === ‘undefined’…Continue reading

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