Footer

/* * MS GROUP WEBSITE — VERSION B * JavaScript — Scroll Reveal Animations * ============================================================ * Uses IntersectionObserver to fade elements up on scroll. * In WordPress, this can be replaced with: * – Elementor entrance animations (built-in) *…Continue reading

Completely Disable Comments (copy)

add_action(‘admin_init’, function () { // Redirect any user trying to access comments page global $pagenow; if ($pagenow === ‘edit-comments.php’) { wp_safe_redirect(admin_url()); exit; } // Remove comments metabox from dashboard remove_meta_box(‘dashboard_recent_comments’, ‘dashboard’, ‘normal’); // Disable support for comments and trackbacks in…Continue reading

Wijzigingen in mu-plugins

/** * Pixelsz – MU Plugins Monitor versie 2.1.3 * * Wijzigingen t.o.v. 2.0: * – Geen mail als issues identiek zijn aan de vorige scan * – Log bewaart maximaal 7 dagen gewone entries; meldingen met issues blijven altijd…Continue reading

Missing /Stories SLUG

add_action(‘template_redirect’, function () { if (is_admin()) return; global $wp; $request_path = trim($wp->request, ‘/’); // Skip if already under /stories/ if (strpos($request_path, ‘stories/’) === 0) return; // Only run on 404s (old URLs) if (is_404()) { // Extract slug (last part…Continue reading

Search for Dance by Name

function dance_search_shortcode() { global $wpdb; // 🔧 CHANGE THIS $table = $wpdb->prefix . ‘nwdances’; // Detect admin for debug output $is_admin_user = current_user_can(‘manage_options’); ob_start(); echo ‘ ‘; echo ‘‘; echo ‘Search‘; echo ‘ ‘; // Default to empty string (shows…Continue reading