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]

Leave a Reply

Random Post Selection ::

Recent Posts

Unlock Unlimited Downloads