Form action onSubmit
First Name Email AddressContinue reading
Join 2,000,000+ Professionals who use WPCode to Future-Proof Their Websites!
First Name Email AddressContinue reading
// Add Security Headers / Kiri Vadivelu / 2026 function add_security_headers() { header(“Strict-Transport-Security: max-age=31536000; includeSubDomains; preload”); // header(“Content-Security-Policy: default-src ‘self’; img-src ‘self’ data: https:; script-src ‘self’ ‘unsafe-inline’ https:; style-src ‘self’ ‘unsafe-inline’ https:; frame-ancestors ‘self’”); header(“X-Frame-Options: SAMEORIGIN”); header(“X-Content-Type-Options: nosniff”); header(“X-XSS-Protection: 1;…Continue reading
// Manage Admin Menu / Kiri Vadivelu / 2026 function hide_admin_menu() { remove_menu_page( ‘edit.php’ ); // Posts remove_menu_page( ‘upload.php’ ); // Media remove_menu_page( ‘edit-comments.php’ ); // Comments remove_menu_page( ‘themes.php’ ); // Appearance remove_menu_page( ‘plugins.php’ ); // Plugins remove_menu_page( ‘users.php’ );…Continue reading
¿Tienes Madera de AV?Continue reading
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }Continue reading
// Dynamic Current Year / Kiri Vadivelu / 2026 function current_year() { $year = date(‘Y’); return $year; } add_shortcode(‘current_year’, ‘current_year’);Continue reading
html body div#om-{{id}}.Campaign.CampaignType–slide { right: 40px !important; bottom: 100px !important; }Continue reading
// Disable Password Reset / Kiri Vadivelu / 2026 function disable_password_reset() { return false; } add_filter(‘allow_password_reset’, ‘disable_password_reset’); // Remove “Lost Your Password?” Link function remove_lostpassword_text($text) { if ($text == ‘Lost your password?’) { $text = ”; } return $text; }…Continue reading
// Show User ID / Kiri Vadivelu / 2026 // 1. Add the ID column after the Username column function add_user_id_column($columns) { $new_columns = array(); foreach ($columns as $key => $value) { $new_columns[$key] = $value; // Insert ‘user_id’ column right…Continue reading
// List Media Metadata / Kiri Vadivelu / 2026 // 1. Add Columns to Media Library function add_media_library_columns( $columns ) { $columns[‘media_format’] = ‘Format’; $columns[‘dimensions’] = ‘Dimensions’; $columns[‘file_size’] = ‘File Size’; return $columns; } add_filter( ‘manage_media_columns’, ‘add_media_library_columns’ ); // 2.…Continue reading