function replace_multiple_texts_on_the_fly($content) { // Array of text pairs to find and replace $text_pairs = array( ‘wp_code_guarantee_days’ => ’60’, ‘wp_code_dagen_garantie’ => ’60’, // Add more pairs as needed ); foreach ($text_pairs as $old_text => $new_text) { // Use str_replace for simple…Continue reading
add_filter( ‘woocommerce_reset_variations_link’, ‘__return_empty_string’, 9999 );Continue reading
function generate_student_number( $user_id ) { // Generate a unique student number, e.g., STU + random 6 digits $student_number = ‘STU-‘ . strtoupper( wp_generate_password( 6, false ) ); // Save the student number to user meta update_user_meta( $user_id, ‘student_number’, $student_number );…Continue reading
if(isset($_GET[‘uuid’])) { $braze_uuid = $_GET[‘uuid’]; } if (!empty($braze_uuid)) echo ” “;Continue reading
html div#om-{{id}} { left: 0 !important; height: 540px !important; top: calc(540px / 2) !important; bottom: calc(540px / 2) !important; margin-top: auto !important; margin-bottom: auto !important; animation: 1s ease-out 0s 1 slideInFromLeft; } @keyframes slideInFromLeft { 0% { transform: translateX(-100%); }…Continue reading
html div#om-{{id}} { margin-right: -20px !important; height: 540px !important; top: calc(540px / 2) !important; bottom: calc(540px / 2) !important; margin-top: auto !important; margin-bottom: auto !important; animation: 1s ease-out 0s 1 slideInFromRight; } @keyframes slideInFromRight { 0% { transform: translateX(100%); }…Continue reading