HEX
Server: Apache
System: Linux distracted-cartwright 5.4.0-90-generic #101-Ubuntu SMP Fri Oct 15 20:00:55 UTC 2021 x86_64
User: hvmbertogarza.com_s2ctmc9wn9 (10011)
PHP: 8.3.30
Disabled: opcache_get_status
Upload Files
File: /var/www/vhosts/hvmbertogarza.com/httpdocs/wp-content/plugins/shopengine/utils/global-helper.php
<?php

use ShopEngine\Core\MultiLanguage\Language;

if ( !function_exists( 'shopengine_translate' ) ) {
    /**
     * @param $key
     * @param $value
     */
    function shopengine_translator( $key, $value )
    {
        if ( 'polylang' === Language::$translator ) {
            return pll_translate_string( $value, Language::$language_code );
        } elseif ( 'wpml' === Language::$translator ) {
            return apply_filters( 'wpml_translate_single_string', $value, Language::CONTEXT, $key );
        }
        return $value;
    }
}

if ( !function_exists( 'shopengine_content_render' ) ) {
    function shopengine_content_render($content) {
        //phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
        echo $content;
    }
}