Sanitize And Escape Text Input In WordPress

[ad_1]

For general sanitization of text input fields and text areas for plugin options and such, use:

sanitize_text_field( string $string )

For escaping in general for text input fields, use:

esc_attr( string $string )

@refer https://wordpress.stackexchange.com/a/66323/90061

[ad_2]

PROMEX · YOUR ACCOUNT

Login / Register

Use your WhatsApp number. We’ll send you a code to sign in securely.

Your code expires in 5 minutes. Never share it with anyone.