WP Codex
How To Create A Custom Rest Api Endpoint In WordPress
The WordPress REST API lets you create your own URLs that return JSON. They are useful for mobile apps, JavaScript widgets and connecting external services. Register routes with register_rest_route() on…
How To Cache Data In WordPress With The Transients Api
Transients store data temporarily in the database or in the object cache, with an expiration time. They are perfect for saving the result of slow work, like an external API…
How To Send Emails In WordPress With Wp_Mail
wp_mail() is the WordPress function for sending email. It works with any SMTP plugin and respects all the mail filters, so always use it instead of the plain PHP mail()…
How To Register Post Meta In WordPress With Register_Post_Meta
register_post_meta() tells WordPress about a custom field: its type, if it is a single value, how to sanitize it and if it is available in the REST API and the…
How To Add Pagination To A Custom Wp_Query In WordPress
A custom WP_Query does not paginate by itself. You need to pass the current page number to the query and then print the page links with paginate_links().


