Tag block
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 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…
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 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…


