-
-
Save stalukder03/9328aaf03a5ea0e18fada469b2e50eb6 to your computer and use it in GitHub Desktop.
This file contains 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