/** * Plugin Name: Hemodynamic Vitals Plugin * Description: Provides [hemo_form] and [hemo_table] shortcodes to collect and display blood pressure & heart rate, with Bootstrap alerts and Syncfusion table. * Version: 1.0 */ if(!defined(‘ABSPATH’)){ exit; } /********************************************************* * BLOCK 1…Continue reading
/********************************************************* * BLOCK 2 * Additional shortcodes: [bp_stage_syncfusion], [bp_chart], [bp_interpretation] * plus a helper function => bp_get_latest_reading() *********************************************************/ /** * HELPER => bp_get_latest_reading() * Returns { systolic, diastolic } or null if none found */ if(!function_exists(‘bp_get_latest_reading’)){ function bp_get_latest_reading(){ if(!is_user_logged_in()) return…Continue reading
echo ‘hello’; //this page is new-record if ( ! post_password_required() ) { // Code to fetch and print CFs, such as: $key_1_value_1 = get_post_meta( $post->ID, ‘key_1’, true ); echo $key_1_value_1; } echo ‘ ‘; echo ‘ ‘; echo ‘ ‘;…Continue reading
add_filter( ‘the_content’, function ( $content ) { // Return early if it isn’t the home page or the blog page. if ( ! is_home() && ! is_front_page() ) { return $content; } return str_replace( ‘Continue reading
use PODeviceDetector\API\Device; $test = true; $remove = true;Continue reading
/** * Allow login with email only.. By Amiru アミル さん */ // 1. Authenticate user by email if username is not provided. add_filter(‘authenticate’, ‘authenticate_with_email’, 20, 3); function authenticate_with_email($user, $username, $password) { if (empty($username) && !empty($password)) { // Check if…Continue reading
function restrict_bp_members_directory() { if (function_exists(‘bp_is_members_directory’) && bp_is_members_directory() && !current_user_can(‘administrator’)) { wp_redirect(home_url()); // Redirige vers la page d’accueil exit; } } add_action(‘bp_template_redirect’, ‘restrict_bp_members_directory’);Continue reading
$post_url = urlencode( get_permalink() ); $post_title = urlencode( get_the_title() ); $facebook_url = “https://www.facebook.com/sharer/sharer.php?u=$post_url”; $x_url = “https://twitter.com/intent/tweet?url=$post_url&text=$post_title”; $linkedin_url = “https://www.linkedin.com/shareArticle?mini=true&url=$post_url&title=$post_title”; $social_buttons = ‘ ‘; echo $social_buttons; // Styles for the social sharing buttons. echo ‘ ‘;Continue reading