Category: Admin
Minimal WordPress Search
add_filter( ‘post_search_columns’, function( $columns ) { return [ ‘post_title’ ]; } );Continue reading
Terraform file
terraform { required_providers { stripe = { source = “stripe/stripe” version = “0.1.3” } } } provider “stripe” { # API key is read from STRIPE_API_KEY environment variable # Alternatively, set it explicitly (not recommended for production) # api_key =…Continue reading
Add Hash Tag
a[class^=”tag-cloud-link”]::before { content: ‘#’; color: blue; // optionally add theme color font-weight: bold; // optionally make thicker }Continue reading
Untitled Snippet
Sabor Elegante | Recetas de Cocina Fáciles y Deliciosas 🍳 Sabor Elegante Inicio Recetas Nosotros Contacto Privacidad Cocina con Pasión Recetas fáciles, saludables y elegantes para todos los días Ver Recetas Espacio Publicitario 728×90 – Google AdSense Italiana Pasta Alfredo…Continue reading
Add GA click events
document.addEventListener(‘click’, function (e) { const a = e.target.closest(‘a’); if (!a) return; if (a.href.startsWith(‘tel:’)) { gtag(‘event’, ‘click_phone’, { link_url: a.href }); } if (a.href.startsWith(‘mailto:’)) { gtag(‘event’, ‘click_email’, { link_url: a.href }); } });Continue reading
Better Mobile Navigation
/* Better Mobile Navigation / Kiri Vadivelu / 2026 */ /* Custom CSS for Twenty Twenty-Five Mobile Menu */ /* Add background color to overlay */ :root.has-modal-open { –wp–preset–color–base: lightblue; } /* Adjust submenu container styling */ .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .has-child…Continue reading
Remove Plugin Description
// Remove Plugin Description / Kiri Vadivelu / 2026 function hide_plugin_description( $columns ) { // Remove the ‘Description’ key from the columns array if ( isset( $columns[‘description’] ) ) { unset( $columns[‘description’] ); } return $columns; } add_filter( ‘manage_plugins_columns’, ‘hide_plugin_description’…Continue reading
Sort User ID
// 1. Add the User ID column to the users table add_filter(‘manage_users_columns’, ‘add_user_id_column’); function add_user_id_column($columns) { // Insert ‘user_id’ column after the checkbox column $new_columns = array(); foreach ($columns as $key => $value) { $new_columns[$key] = $value; if ($key ===…Continue reading