PHP
How To Add Custom Body Classes And Post Classes In WordPress
WordPress adds helpful classes to the body tag and to each post, and you can add your own with the body_class and post_class filters. They make it easy to style…
How To Add Custom Columns To The Posts List In The WordPress Admin
You can add your own columns to the list of posts, pages or custom post types in the dashboard, for example a thumbnail, a price or a custom field. Two…
How To Add Content Before Or After Posts With The The_Content Filter
The the_content filter runs every time WordPress prints the content of a post. Hook into it to add a call to action, an author box, an ad or any extra…
How To Add Settings To The WordPress Customizer
The Customizer lets site owners change theme options with a live preview. Add a section, a setting and a control with the customize_register hook, then read the saved value with…
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…


