PHP
How To Create Custom Urls In WordPress With Add_Rewrite_Rule
Rewrite rules map a pretty URL, like /deals/summer-sale/, to a query that WordPress understands. Use them when you need URLs that do not belong to a normal page, post or…
How To Create A Settings Page In WordPress With The Settings Api
The Settings API is the standard way to build an options page in the admin. WordPress handles saving, security and the form submission. You only define the page, the sections…
How To Make Api Requests In WordPress With Wp_Remote_Get And Wp_Remote_Post
WordPress has its own HTTP API for talking to external services. Use wp_remote_get() and wp_remote_post() instead of cURL, because they work on any hosting and respect the site settings.
How To Schedule Tasks In WordPress With Wp-Cron
WP-Cron runs tasks on a schedule, like cleaning old data, syncing an API or sending a report. It does not use a real server cron. WordPress checks for due tasks…
How To Redirect Users After Login By Role And Hide The Admin Bar In WordPress
Send each type of user to the right place after they log in, and hide the toolbar from users who should not see it. Both are common in membership sites…


