Show cron status
All posts by
Random value per row
NewId is good for this as it acts per row:
Submit button
Button styling example Delete button with icon example
Email and Cloudflare
If you are using cloudflare to hide your servers IP address, then you need to ensure you don’t send email from that server. Reasons: Creating a SPF record to avoid email going to spam will require you to specify the servers IP address – fail! Sending an email will reveal your IP address in the […]
Plugin release checlist
Basic bug checks: All files declare your plugins namespace at the top (assuming you are using one) Search all the files for “add_action”, confirm all uses include the namespace before the function name Search all the files for “add_shortcode”, confirm all uses include the namespace before the function name
Useful colours
Alert red#FF0000 Less primary red#ED1C24 Delete button red#a50011Nice border: #6e040f Rude pink :-)#B00B69
Debugging checklist/tips
Using a namespace? All php files declare the namespace at the top? Search all the files for “add_action”, confirm all uses include the namespace before the function name Search all the files for “add_shortcode”, confirm all uses include the namespace before the function name
WordPress site info
Get site name Get site description Get site URL
Time since last seen
Using a session value to store last seen DateTime
5 min cron with catchup if not called every 5 mins
This handler cron is intended to be called every 5 mins and will run 5 min tasks and 1 hour tasks, using a timestamp stored for each. If it hasn’t been called every 5 mins it will loop the 5 min tasks to catch up