Last active
March 12, 2025 09:06
-
-
Save kailoon/01fa8e95d2e910e666c6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Escape all translations with | |
*/ | |
__( ‘Some String’, ‘text-domain’ ); _e( ‘Some string’, ‘text-domain’ );. | |
/** | |
* When there is no HTML use: | |
*/ | |
esc_html__( ‘Some String’, ‘text-domain’ ); esc_html_e( ‘Some String’, ‘text-domain’ ); | |
/** | |
* For some HTML: | |
*/ | |
wp_kses( __( ‘Some String something’, ‘text-domain’ ), $allowed_html_array ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Exactly, We can not use (), Only verify esc_html()