pll_esc_html_e

Echoes a translated string ( previously registered with pll_register_string ) and escapes it for safe use in HTML output.

Description

pll_esc_html_e( (string) $string ); 

Parameters (1)

0. $string (string)
The string to translate

Usage

  1. if ( !function_exists( 'pll_esc_html_e' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'polylang/include/api.php'; 
  3.  
  4. // the string to translate 
  5. $string = ''; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = pll_esc_html_e($string); 
  9.  

Defined (1)

The function is defined in the following location(s).

/include/api.php  
  1. function pll_esc_html_e( $string ) { 
  2. echo pll_esc_html__( $string );