test

add_action( ‘admin_notices’, function () { $state = ( defined( ‘WP_DEBUG’ ) && WP_DEBUG ) ? ‘enabled’ : ‘disabled’; echo ‘ WP_DEBUG is ‘ . esc_html( $state ) . ‘. ‘; } );Continue reading

Secure Admin Menu

// Secure Admin Menu / Kiri Vadivelu / 2026 add_action( ‘admin_init’, ‘secure_admin_menu’ ); function secure_admin_menu() { // Replace 1 with the actual User ID of the owner $owner_id = 1; global $user_ID; // 1. If not owner, remove from sidebar…Continue reading

Custom Admin Menu

// Custom Admin Menu / Kiri Vadivelu / 2026 add_action( ‘admin_init’, ‘owner_admin_menu’ ); function owner_admin_menu() { // Replace 1 with the actual User ID of the owner $owner_id = 1; global $user_ID; // If the current user is NOT the…Continue reading

lokalstolz | Kleine Stylesheets inline

/* * WPCode-Snippet “lokalstolz | Kleine Stylesheets inline” (Typ php, Location everywhere, Auto-Insert an) * Zentral gepflegt in der WPCode-Bibliothek: Code in der Instanz nicht aendern. * Ziel: weniger render-blockierende Anfragen. Oxygen bindet viele winzige Stylesheets einzeln im Kopf ein…Continue reading

Create Private Folder

// Create Private Folder / Kiri Vadivelu / 2026 function create_private_folder() { $upload_dir = wp_upload_dir(); $private_path = trailingslashit( $upload_dir[‘basedir’] ) . ‘private-files’; // Update the status to debug log if ( ! is_dir( $private_path ) ) { $result = wp_mkdir_p(…Continue reading

lokalstolz | Mauszeiger

/* * WPCode-Snippet “lokalstolz | Mauszeiger” (Typ php, Location everywhere, Auto-Insert an) * Zentral gepflegt in der WPCode-Bibliothek: Code in der Instanz nicht aendern. Farben, Groessen und * Selektoren je Projekt in der Option ls_mauszeiger (Array), siehe stack/wpcode-mauszeiger.md. * Eigener…Continue reading

lokalstolz | Grundkorrekturen

/* * WPCode-Snippet “lokalstolz | Grundkorrekturen” (Typ php, Location everywhere, Auto-Insert an) * Vorlage aus der web-wissensbasis (stack/quelltext-hygiene.md, oxygen/13-wordpress-grundeinstellungen.md). * Titel in WPCode und Bibliothek genau so. Fuer jede Oxygen-6-Instanz (Dev und Studio-WordPress). * Zentral gepflegt in der WPCode-Bibliothek: Code…Continue reading

lokalstolz | Gravity Forms Pflichtfelder (statisch)

/* * WPCode-Snippet “lokalstolz | Gravity Forms Pflichtfelder (statisch)” (Typ php, Location everywhere, Auto-Insert an) * Titel in WPCode und Bibliothek genau so. Fuer jedes Projekt mit Gravity Forms auf Static Studio (Dev und Studio-WordPress). * Entstanden 16.10.2026. Die Studio-Validierung…Continue reading