PATH:
home
/
lab2454c
/
archswipe.com
/
wp-content
/
plugins
/
translatepress-multilingual
/
includes
<?php // add conditional language shortcode add_shortcode( 'trp_language', 'trp_language_content'); /* --------------------------------------------------------------------------- * Shortcode [trp_language language="en_EN"] [/trp_language] * --------------------------------------------------------------------------- */ function trp_language_content( $attr, $content = null ){ global $TRP_LANGUAGE_SHORTCODE; if (!isset($TRP_LANGUAGE_SHORTCODE)){ $TRP_LANGUAGE_SHORTCODE = array(); } $TRP_LANGUAGE_SHORTCODE[] = $content; extract(shortcode_atts(array( 'language' => '', ), $attr)); $current_language = get_locale(); if( $current_language == $language ){ $output = do_shortcode($content); }else{ $output = ""; } return $output; } add_filter('trp_exclude_words_from_automatic_translation', 'trp_add_shortcode_content_to_excluded_words_from_auto_translation'); function trp_add_shortcode_content_to_excluded_words_from_auto_translation($excluded_words){ global $TRP_LANGUAGE_SHORTCODE; if (!isset($TRP_LANGUAGE_SHORTCODE)){ $TRP_LANGUAGE_SHORTCODE = array(); } $excluded_words = array_merge($excluded_words, $TRP_LANGUAGE_SHORTCODE); return $excluded_words; }
[-] class-wp-bakery-language-for-blocks.php
[edit]
[+]
advanced-settings
[-] custom-language.php
[edit]
[-] shortcodes.php
[edit]
[-] class-settings.php
[edit]
[-] class-check-invalid-text.php
[edit]
[-] class-woocommerce-emails.php
[edit]
[-] class-translation-manager.php
[edit]
[-] class-install-plugins.php
[edit]
[+]
..
[+]
gettext
[-] class-languages.php
[edit]
[-] class-editor-api-gettext-strings.php
[edit]
[-] class-error-manager.php
[edit]
[-] external-functions.php
[edit]
[-] class-editor-api-regular-strings.php
[edit]
[+]
string-translation
[-] class-reviews.php
[edit]
[-] class-machine-translator.php
[edit]
[-] class-machine-translator-logger.php
[edit]
[-] class-edd-sl-plugin-updater.php
[edit]
[-] class-plugin-notices.php
[edit]
[-] class-plugin-optin.php
[edit]
[-] class-upgrade.php
[edit]
[+]
queries
[-] class-search.php
[edit]
[-] class-translation-memory.php
[edit]
[-] class-uri.php
[edit]
[-] class-url-converter.php
[edit]
[-] class-machine-translation-tab.php
[edit]
[-] .htaccess
[edit]
[+]
google-translate
[-] class-hooks-loader.php
[edit]
[-] class-elementor-language-for-blocks.php
[edit]
[-] class-language-switcher.php
[edit]
[-] class-advanced-tab.php
[edit]
[-] compatibility-functions.php
[edit]
[-] class-rewrite-rules.php
[edit]
[-] functions.php
[edit]
[-] class-translation-render.php
[edit]
[-] class-preferred-user-language.php
[edit]
[-] trp-ajax.php
[edit]