Category: Admin
Enable Clean “Back” Button URL Reference
document.addEventListener(‘DOMContentLoaded’, function() { document.querySelectorAll(‘a[href=”#back-clean”]’).forEach(function(btn){ btn.addEventListener(‘click’, function(e){ e.preventDefault(); try { if (document.referrer) { var r = new URL(document.referrer); r.searchParams.delete(‘add-to-cart’); r.searchParams.delete(‘clear-cart’); // Add any additional parameters to ignore in new line window.location.href = r.toString(); } else { window.location.href = window.location.origin; } }…Continue reading
Expose URL & WooCommerce Page Type to Theme Conditional Rendering Engine
if (!defined(‘ABSPATH’)) exit; add_action(‘wp’, function () { if (is_admin()) { return; } $set = function ($key, $value) { $_GET[$key] = $value; }; $unset = function ($key) { unset($_GET[$key]); }; /* * rd_url_after_sitebase = everything after the site base (path only)…Continue reading
Add aria-label to progress bar to improve WPForms accessibility
/** * Fix WPForms Accessibility: Add aria-label to progress bar. */ function wpf_fix_wpforms_progressbar_aria() { ?>Continue reading
WPForms Custom Real-time Keyword Blocklist
/** * WPForms Custom Real-time Keyword Blocklist * * @link https://wpforms.com/developers/add-a-real-time-keyword-blocklist-to-a-single-line-text-field/ */ function wpf_dev_realtime_keyword_blocker() { ?>Continue reading
Allow only specific days of the month in all WPForms date pickers
/** * Allow only specific days of each month in all WPForms date pickers. * * @link https://wpforms.com/developers/customize-the-date-time-field-date-options/ */ function wpf_dev_only_selected_days() { ?>Continue reading
Amplitude Dashboard
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
Smooth Entry for Theme-Styled Select Dropdowns (Variation Forms, Shipping Calculator, Toggles)
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