Programming
Create a WordPress Widget
A WordPress widget is a self-contained block for a sidebar or footer. Extend the WP_Widget class to build a configurable Recent Posts widget, register…
Programming
A WordPress widget is a self-contained block for a sidebar or footer. Extend the WP_Widget class to build a configurable Recent Posts widget, register…
Programming
A custom page template lets one page break out of your theme's default layout — full-width, no sidebar, a design of its own. Add…
Programming
Send the Content-Disposition and Content-Type headers that make a browser save a file instead of opening it, then stream the bytes with readfile() —…
Programming
Find, capture, validate, and replace text with PHP's preg_match(), preg_match_all(), and preg_replace(). Work one string through four common jobs using named groups and anchored…
Programming
Call a JSON API from PHP with the bundled cURL extension. Run a GET and a POST, read the HTTP status code, and decode…
Programming
Store a small value in the visitor's browser with setcookie() and read it back from the $_COOKIE array. Build a page that remembers a…