// v2 $listing_template .= '' . esc_html( $wpsl->i18n->get_translation( 'phone_label', __( 'Phone', 'wpsl' ) ) ) . ''; // v3: the {{...}} tag goes inside the template string, // the plugin replaces it with the translated label $listing_template .= '' . "{{wpsl_label( 'phone_label' )}}" . '';