[advanced_tbsa_calculator]
/** * Shortcode: [advanced_tbsa_calculator] */ function advanced_tbsa_calculator_shortcode($atts) { ob_start(); ?> Parkland Modified Brooke Galveston Shriners–Cincinnati Rule of TenContinue reading
Join 2,000,000+ Professionals who use WPCode to Future-Proof Their Websites!
/** * Shortcode: [advanced_tbsa_calculator] */ function advanced_tbsa_calculator_shortcode($atts) { ob_start(); ?> Parkland Modified Brooke Galveston Shriners–Cincinnati Rule of TenContinue reading
/* play/pause for homepage background video */ .video-controls { position: absolute; bottom: 20px; right: 20px; z-index: 1000; } #playPauseBtn { padding: 10px 20px; border: none; border-radius: 5px; cursor: pointer; font-size: 16px; } #playPauseBtn:focus { outline: 2px solid #ffcc00; }Continue reading
add_action(‘init’, function () { if (!is_admin()) return; // STOP if SKUs were already generated if (get_option(‘auto_sku_generated’) === ‘yes’) return; // ✅ Immediately mark it done to prevent infinite loops update_option(‘auto_sku_generated’, ‘yes’); // Fetch all published WooCommerce products $args = array(…Continue reading
[mwai_chatbot id=”default”]Continue reading
/** * MemberPress Downloads – Add Thumbnail Support * * Enables featured image functionality for MP Downloads files. */ add_action( ‘init’, function() { add_post_type_support( ‘mpdl-file’, ‘thumbnail’ ); });Continue reading
function mepr_change_invoice_bill_to( $invoice, $txn ) { $user = $txn->user(); // Get company custom field. // Replace ‘mepr_company_name’ with the custom field slug. $company = get_user_meta( $user->ID, ‘mepr_company_name’, true ); // Return company name if not empty $name = ( !empty(…Continue reading
add_filter(‘comments_open’, function($open, $post_id) { $post = get_post($post_id); // Check if the post type is ‘mpcs-lesson’ or ‘mpcs-course’ if (in_array($post->post_type, [‘mpcs-lesson’, ‘mpcs-course’, ‘mpcs-quiz’, ‘mpcs-assignment’])) { $open = false; } return $open; }, 10, 2);Continue reading
use memberpress\courses\models as models; // Register classroom Styles function wpdocs_register_plugin_styles() { wp_enqueue_style( ‘mpcs-fontello-styles’, plugins_url( ‘memberpress-courses/public/fonts/fontello/css/mp-courses.css’ ) ); wp_enqueue_style( ‘mpcs-progress’, plugins_url( ‘memberpress-courses/public/css/progress.css’ ) ); } add_action( ‘wp_enqueue_scripts’, ‘wpdocs_register_plugin_styles’ ); // The “[mepr-mpcs-course-overview]” shortcode add_shortcode( ‘mepr-mpcs-course-overview’, function( $attributes ) { $content =…Continue reading
add_filter( ‘mepr_design_style_handles’, function ( $allowed_handles ) { $allowed_handles[] = ‘popup-maker-site’; return $allowed_handles; } );Continue reading