WP Codex
How To Run Safe Database Queries In WordPress With $Wpdb
The global $wpdb object lets you query the WordPress database directly. Use it when the standard functions are not enough, and always use $wpdb->prepare() to protect against SQL injection.
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…


