) in a textarea in theme customizer with a ‘sanitize call back’.
Now I want output in front end, My code will be:
<?php echo get_theme_mod( 'my_teaxtarea' ) ;?>
As WordPress Theme Development rules, it’s necessary to validate any text print.
How will I validate.
Because ‘esc_html’ or ‘esc-attr’ will not work.
<?php echo esc_html( get_theme_mod( 'my_teaxtarea' )) ;?>
…… not working.
Thanks.
Please explain in a little detail.
]]>