WordPress Custom Sortable Columns in Post/Page/CPT Listings Leave a Comment / Code Snippets, PHP, Wordpress
Mobile Redirection With Full Site Option Leave a Comment / Code Snippets It’s handy for people who don’t know that you have a mobile version of your site, or know what the URL is (is it sitename.com/mobile?…
Automatically refresh the Stylesheet Version Number Leave a Comment / Code Snippets, General, PHP, Wordpress Add a version number to a WordPress css file that will automatically update when the file is changed:
How to get current directory, filename and code line number in PHP 1 Comment / Code Snippets, PHP Clarity TLDR: Use __DIR__ for the current script’s directory, basename(__FILE__) for the current filename, and __LINE__ for the current line number. The older dirname(__FILE__) form…