Code Snippets
Collection of Code Snippets for WPCodeBox, WordPress, and Other Platforms.
These are the codes I use in real life and shared for re-usability.
Bash Script Expunge/Clear Logs and Journal Debian/Ubuntu Compatible using Cron
Efficiently manage log files on Ubuntu/Debian servers with a simple shell script. Reduce disk usage and keep your server running smoothly.
• August 27, 2024Quick Access Menu – Custom Dropdown for WP Admin Bar with Options Page
Improve functionality and aesthetics of your WordPress site with custom dropdowns, date replacement, and source code highlights. No plugins needed!
• June 10, 2024How to Add “NEW”, “UPDATED”, and “OUTDATED” Badges to Your WordPress Posts
Enhance your WordPress posts with “NEW,” “UPDATED,” and “OUTDATED” badges! Keep your content fresh and organized for better user experience.
• June 8, 2024How to Add Source Code Highlights and a Copy Button in WordPress
“Learn how to add source code highlights and a ‘Copy Code’ button to your WordPress site without using plugins! Improve functionality and aesthetics today.”
• June 8, 2024Shell/Bash Script Migrating WordPress – Find and Replace all Instance of Domain Name in WordPress or MySQL Database
Automate WordPress Domain Migration with our Shell Script. Easily Find & Replace all instances of your old domain in the MySQL database. Try it now!
• June 8, 2024Automatic Table of Content for Your WordPress Posts, Conditional Auto Insert before the First H2
Enhance long-form content readability with WPCodeBox’s Automatic Table of Contents before the first H2 header. Try it now and improve user experience!
• June 8, 2024