Please Check That Am I Right?

Question:

  1. Again. All theme text strings must be internationalized and properly escaped so that the theme can be translated and localized without parent theme modifications. For more information, refer to this Internationalization article. Ref: https://developer.wordpress.org/themes/functionality/internationalization/

Example(s): https://envato.d.pr/oYCPTk

Answer

<?php $loading_escaped = esc_html__( 'LOADING', 'softino' ); ?>

Question

  1. There may still be unescaped strings. It’s best to do the output escaping as late as possible, ideally as data is being outputted. Example(s): https://envato.d.pr/qMBcGV and more.

Answer

Don’t Know
Any Help Would Be Appreciated

May Be Like This
<?php echo esc_html( get_post_meta(get_post_thumbnail_id(), '_wp_attachment_image_alt', TRUE) ) ?>

Reviewer’s Name: pasqualevitiello
Points: https://prnt.sc/r45rnq

your answer for 1. is fine to me.
for 3.
Escaping for HTML attributes you have to use: esc_attr

esc_attr( string $text )

you can get more help on

developer.wordpress.org

Thanks

1 Like

Like this

<?php echo esc_attr( get_post_meta(get_post_thumbnail_id(), '_wp_attachment_image_alt', TRUE) ) ?>

Thanks For your Help @mgscoder

1 Like