Programming
Create a WordPress Settings Page With the Settings API
Build an admin settings screen the way WordPress intends: add_options_page for the menu, register_setting with a sanitize callback, and a form that options.php saves…
Programming
Build an admin settings screen the way WordPress intends: add_options_page for the menu, register_setting with a sanitize callback, and a form that options.php saves…
Programming
WordPress builds a query for every page before it runs, and pre_get_posts hands you that query while it is still being built. Change how…
Programming
Schedule recurring tasks with WP-Cron, WordPress's built-in scheduler. This tutorial hooks a task to a custom action, adds a five-minute interval through cron_schedules, schedules…
Programming
The Transients API is WordPress's built-in cache for expensive results — a slow query, a remote call, a heavy calculation. Store a value with…
Programming
Handling AJAX requests lets the browser talk to your server without reloading the page. Route requests through admin-ajax.php, verify them with a nonce, and…
Programming
A custom REST API endpoint serves your site's own JSON at a URL you choose. Use register_rest_route() to publish a public route that returns…