Admin Styles

/* * Arquivo: admin-style.css – Versão Final Corrigida * Correções: Eliminação total de azuis/cores WP em hovers/actives, melhoria do contraste dos ícones. */ /* Variáveis CSS para gerenciamento de cores e tamanhos */ :root { /* Cores de Fundo e…Continue reading

Hard-Disable TEC Zoom/Webex (DB Password Check Fix)

add_action( ‘init’, function () { // Only run if TEC/tribe() container exists. if ( ! function_exists( ‘tribe’ ) ) { return; } /* Disable Zoom provider actions */ $zoom_provider = tribe( \Tribe\Events\Virtual\Meetings\Zoom_Provider::class ); if ( $zoom_provider instanceof \Tribe\Events\Virtual\Meetings\Zoom_Provider ) {…Continue reading

to add WordPress WooCommerce WhatsApp checkout (copy)

// Exit if accessed directly if (!defined(‘ABSPATH’)) { exit; } // Check if WooCommerce is active if (!in_array(‘woocommerce/woocommerce.php’, apply_filters(‘active_plugins’, get_option(‘active_plugins’)))) { add_action(‘admin_notices’, ‘superwp_wc_not_active_notice’); function superwp_wc_not_active_notice() { ?>Continue reading

PHP-snippet: registratie lessen verwerken en AJAX endpoint

// Configuratie function get_parameters_36(): array { return [ “target_page_slug” => “lesrooster-evenemententeam-2025”, “tablepress_table_id” => 36 ]; } /** * Probeer een (Nederlandse) datum-string te parsen naar een DateTime in Europe/Amsterdam. * Retourneert DateTime of false als parsing mislukt. */ function etb_parse_datum_to_datetime($datum)…Continue reading

JS-snippet: knoppen toevoegen lesrooster en AJAX triggeren

jQuery(document).ready(function($){ var table = $(‘#tablepress-36’); if (!table.length) return; table.find(‘tbody tr’).each(function(index){ var row = $(this); var row_index = index + 1; // eerste rij header = 0 var button = $(‘‘, { text: ‘Geef je op’, class: ‘lesrooster-registreer-btn’, style: ‘margin-left:10px;padding:5px 10px;background:#0073aa;color:#fff;border:none;border-radius:3px;cursor:pointer;’…Continue reading