Tag escape
WordPress Sanitizing And Escaping Cheat Sheet: Secure Your Code
Two rules keep WordPress code safe: sanitize input when data comes in, and escape output when data goes out to the browser. Sanitize early, escape late.
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 Add A Custom Meta Box And Save Custom Fields In WordPress
A meta box is an extra panel in the post editor where you can add custom fields, like a subtitle, a price or a link. This example creates a text…
How To Create A Custom Shortcode In WordPress
A shortcode is a small tag in square brackets that the editor replaces with dynamic content. Register one with add_shortcode() and always return the output instead of printing it.


