/* * WPCode-Snippet “lokalstolz | GSAP lokal statt unpkg” (Typ php, Location everywhere, Auto-Insert an) * Vorlage aus der web-wissensbasis (gsap/03-wordpress-einbindung-und-selbst-hosten.md). Titel in WPCode und in der Bibliothek genau so. * Oxygen laedt GSAP und ScrollTrigger fuer seine Animationen sonst…Continue reading
/* * WPCode-Snippet “lokalstolz | Umgebungs-Hinweis STAGING” (Typ php, Location everywhere, Auto-Insert an) * Vorlage aus der web-wissensbasis (stack/umgebungs-leisten.md), Standard fuer jedes Static-Studio-Projekt. * Titel in WPCode und in der Bibliothek genau so. * Gehoert NUR ins Studio-WordPress. Nicht auf…Continue reading
/* * WPCode-Snippet “lokalstolz | Umgebungs-Hinweis DEV” (Typ php, Location everywhere, Auto-Insert an) * Vorlage aus der web-wissensbasis (stack/umgebungs-leisten.md). Titel in WPCode und in der Bibliothek genau so. * Gehoert NUR auf Dev (Host-Pruefung in PHP). Nie im Studio-WordPress anlegen.…Continue reading
// File Activity Log / Kiri Vadivelu / 2026 // Log user actions and file modifications // ─── Configuration ────────────────────────────────────────────── define( ‘FAL_LOG_FILE’, WP_CONTENT_DIR . ‘/activity.log’ ); define( ‘FAL_MAX_ENTRIES’, 500 ); // ─── Core Logger ──────────────────────────────────────────────── function fal_log( $action, $meta =…Continue reading
// Admin 404 Log / Kiri Vadivelu / 2026 // Add admin menu function add_404_log_menu() { add_menu_page( ‘404 Error Log’, ‘404 Log’, ‘manage_options’, ‘404-log’, ‘render_404_log_page’, ‘dashicons-megaphone’, 80 ); } add_action( ‘admin_menu’, ‘add_404_log_menu’ ); // Render the page function render_404_log_page() {…Continue reading
// Admin Debug Log / Kiri Vadivelu / 2026 // Ensure debug mode enabled at wp-config // if ( ! defined( ‘WP_DEBUG’ ) ) define( ‘WP_DEBUG’, true ); // if ( ! defined( ‘WP_DEBUG_DISPLAY’ ) ) define( ‘WP_DEBUG_DISPLAY’, false );…Continue reading
// Admin Server Log / Kiri Vadivelu / 2026 // Log HTTP requests to a file define( ‘HTTP_LOG_FILE’, WP_CONTENT_DIR . ‘/http-requests.log’ ); function my_log_http_request( $response, $request, $url ) { $log_entry = [ ‘time’ => current_time( ‘mysql’ ), ‘method’ => $request[‘method’],…Continue reading
// Admin Email Log / Kiri Vadivelu / 2026 // Register the Admin Menu add_action(‘admin_menu’, ‘register_all_menus’); function register_all_menus() { add_menu_page( ‘Email Log’, ‘Email Log’, ‘manage_options’, // Access for Admin Only ‘smtp-log’, ‘render_smtp_log_page’, ‘dashicons-email-alt’, 99 ); } // Render the Email…Continue reading
// Debug file loading / Kiri Vadivelu / 2026 error_log(‘FILE LOADED: ‘ . __FILE__);Continue reading