Other Hooks
Auto-generated filters. Contains all the filter in Weglot's plugin code

Hook: weglot_translate_email

Description

File: src/actions/class-email-translate-weglot.php
Type: Filter
Parameter: $email_translate, $args

Declaration:

1
$translate_email = apply_filters( 'weglot_translate_email', $this->option_services->get_option( 'email_translate' ), $args );
Copied!

Code exemple:

1
add_filter( 'weglot_translate_email', 'prefix_weglot_translate_email' );
2
function prefix_weglot_translate_email( $email_translate, $args ) {
3
// Code
4
return $email_translate;
5
}
Copied!

Hook: weglot_language_code_replace

Description

You can find the more documentation and example about this hook here : https://developers.weglot.com/wordpress/use-cases/use-custom-language-code-url-lang-and-hreflang-attribute
Type: Filter
Parameter: $replacements

Declaration:

1
$language_code_rewrited = apply_filters('weglot_language_code_replace' , array());
Copied!

Code exemple:

1
add_filter( 'weglot_language_code_replace', 'prefix_weglot_weglot_language_code_replace' );
2
function prefix_weglot_weglot_language_code_replace( $replacements ) {
3
// Code
4
return $replacements;
5
}
Copied!

Hook: weglot_get_rest_current_url_path

Description

File: weglot-functions.php
Type: Filter
Parameter: $current_url

Declaration:

1
return apply_filters( 'weglot_get_rest_current_url_path', $current_url['path'] );
Copied!

Code exemple:

1
add_filter( 'weglot_get_rest_current_url_path', 'prefix_weglot_get_rest_current_url_path' );
2
function prefix_weglot_get_rest_current_url_path( $current_url ) {
3
// Code
4
return $current_url;
5
}
Copied!

Hook: weglot_ninja_forms_is_active

Description

File: ./src/third/ninjaforms/class-ninja-active.php
Type: Filter
Parameter: $active

Declaration:

1
return apply_filters( 'weglot_ninja_forms_is_active', $active );
Copied!

Code exemple:

1
add_filter( 'weglot_ninja_forms_is_active', 'prefix_weglot_ninja_forms_is_active' );
2
function prefix_weglot_ninja_forms_is_active( $active ) {
3
// Code
4
return $active;
5
}
Copied!

Hook: weglot_wc_reload_selector

Description

File: ./src/third/woocommerce/class-wc-cart-reload-weglot.php
Type: Filter
Parameter: $string

Declaration:

1
$click_selector = apply_filters( 'weglot_wc_reload_selector', '.weglot-lang a' );
Copied!

Code exemple:

1
add_filter( 'weglot_wc_reload_selector', 'prefix_weglot_wc_reload_selector' );
2
function prefix_weglot_wc_reload_selector( $string ) {
3
// Code
4
return $string;
5
}
Copied!

Hook: weglot_caldera_forms_is_active

Description

File: ./src/third/calderaforms/class-caldera-active.php
Type: Filter
Parameter: $active

Declaration:

1
return apply_filters( 'weglot_caldera_forms_is_active', $active );
Copied!

Code exemple:

1
add_filter( 'weglot_caldera_forms_is_active', 'prefix_weglot_caldera_forms_is_active' );
2
function prefix_weglot_caldera_forms_is_active( $active ) {
3
// Code
4
return $active;
5
}
Copied!

Hook: weglot_wpforms_is_active

Description

File: ./src/third/wpforms/class-wpforms-active.php
Type: Filter
Parameter: $active

Declaration:

1
return apply_filters( 'weglot_wpforms_is_active', $active );
Copied!

Code exemple:

1
add_filter( 'weglot_wpforms_is_active', 'prefix_weglot_wpforms_is_active' );
2
function prefix_weglot_wpforms_is_active( $active ) {
3
// Code
4
return $active;
5
}
Copied!

Hook: weglot_regex_amp

Description

File: ./src/third/amp/class-amp-service-weglot.php
Type: Filter
Parameter: $regex

Declaration:

1
return apply_filters( 'weglot_regex_amp', $regex );
Copied!

Code exemple:

1
add_filter( 'weglot_regex_amp', 'prefix_weglot_regex_amp' );
2
function prefix_weglot_regex_amp( $regex ) {
3
// Code
4
return $regex;
5
}
Copied!

Hook: weglot_another_redirect_override

Description

File: ./src/third/yoast/class-redirect-handler-weglot.php
Parameter: $request_url

Declaration:

1
do_action( 'weglot_another_redirect_override', $this->request_url );
Copied!

Code exemple:

1
add_action( 'weglot_another_redirect_override', 'prefix_weglot_another_redirect_override' );
2
function prefix_weglot_another_redirect_override( $request_url ) {
3
// Code
4
}
Copied!

Hook: weglot_ucp_is_active

Description

File: ./src/third/underconstructionpage/class-ucp-active.php
Type: Filter
Parameter: $active

Declaration:

1
return apply_filters( 'weglot_ucp_is_active', $active );
Copied!

Code exemple:

1
add_filter( 'weglot_ucp_is_active', 'prefix_weglot_ucp_is_active' );
2
function prefix_weglot_ucp_is_active( $active ) {
3
// Code
4
return $active;
5
}
Copied!

Hook: weglot_menu_parent_menu_item_title

Description

File: ./src/actions/front/class-front-menu-weglot.php
Type: Filter
Parameter: $title

Declaration:

1
$item->title = apply_filters( 'weglot_menu_parent_menu_item_title', $title );
Copied!

Code exemple:

1
add_filter( 'weglot_menu_parent_menu_item_title', 'prefix_weglot_menu_parent_menu_item_title' );
2
function prefix_weglot_menu_parent_menu_item_title( $title ) {
3
// Code
4
return $title;
5
}
Copied!

Hook: weglot_query_vars_check

Description

File: ./src/actions/front/class-search-weglot.php
Type: Filter
Parameter: $string

Declaration:

1
$query_vars_check = apply_filters( 'weglot_query_vars_check', 's' );
Copied!

Code exemple:

1
add_filter( 'weglot_query_vars_check', 'prefix_weglot_query_vars_check' );
2
function prefix_weglot_query_vars_check( $string ) {
3
// Code
4
return $string;
5
}
Copied!

Hook: weglot_active_translation_before_process

Description

File: ./src/actions/front/class-translate-page-weglot.php
Type: Filter
Parameter: $bool

Declaration:

1
$active_translation = apply_filters( 'weglot_active_translation_before_process', true );
Copied!

Code exemple:

1
add_filter( 'weglot_active_translation_before_process', 'prefix_weglot_active_translation_before_process' );
2
function prefix_weglot_active_translation_before_process( $bool ) {
3
// Code
4
return $bool;
5
}
Copied!

Hook: weglot_active_translation_before_treat_page

Description

File: ./src/actions/front/class-translate-page-weglot.php
Type: Filter
Parameter: $bool

Declaration:

1
$active_translation = apply_filters( 'weglot_active_translation_before_treat_page', true );
Copied!

Code exemple:

1
add_filter( 'weglot_active_translation_before_treat_page', 'prefix_weglot_active_translation_before_treat_page' );
2
function prefix_weglot_active_translation_before_treat_page( $bool ) {
3
// Code
4
return $bool;
5
}
Copied!

Hook: weglot_debug_file

Description

File: ./src/actions/front/class-translate-page-weglot.php
Type: Filter
Parameter: $weglot_dir_string

Declaration:

1
$file = apply_filters( 'weglot_debug_file', WEGLOT_DIR . '/content.html' );
Copied!

Code exemple:

1
add_filter( 'weglot_debug_file', 'prefix_weglot_debug_file' );
2
function prefix_weglot_debug_file( $weglot_dir_string ) {
3
// Code
4
return $weglot_dir_string;
5
}
Copied!

Hook: weglot_get_clean_base_url

Description

File: ./src/helpers/class-helper-filter-url-weglot.php
Type: Filter
Parameter: $url

Declaration:

1
return apply_filters( 'weglot_get_clean_base_url', $url );
Copied!

Code exemple:

1
add_filter( 'weglot_get_clean_base_url', 'prefix_weglot_get_clean_base_url' );
2
function prefix_weglot_get_clean_base_url( $url ) {
3
// Code
4
return $url;
5
}
Copied!

Hook: weglot_helper_filter_url_lambda

Description

File: ./src/helpers/class-helper-filter-url-weglot.php
Type: Filter
Parameter: $prevent_subfolder_install

Declaration:

1
return apply_filters( 'weglot_helper_filter_url_lambda', self::prevent_subfolder_install( $url ) );
Copied!

Code exemple:

1
add_filter( 'weglot_helper_filter_url_lambda', 'prefix_weglot_helper_filter_url_lambda' );
2
function prefix_weglot_helper_filter_url_lambda( $prevent_subfolder_install ) {
3
// Code
4
return $prevent_subfolder_install;
5
}
Copied!

Hook: weglot_helper_filter_url_without_ajax

Description

File: ./src/helpers/class-helper-filter-url-weglot.php
Type: Filter
Parameter: $prevent_subfolder_install

Declaration:

1
return apply_filters( 'weglot_helper_filter_url_without_ajax', self::prevent_subfolder_install( $url ) );
Copied!

Code exemple:

1
add_filter( 'weglot_helper_filter_url_without_ajax', 'prefix_weglot_helper_filter_url_without_ajax' );
2
function prefix_weglot_helper_filter_url_without_ajax( $prevent_subfolder_install ) {
3
// Code
4
return $prevent_subfolder_install;
5
}
Copied!

Hook: weglot_get_replace_modify_link

Description

File: ./src/helpers/class-helper-replace-url-weglot.php
Type: Filter
Parameter: $data

Declaration:

1
return apply_filters( 'weglot_get_replace_modify_link', $data );
Copied!

Code exemple:

1
add_filter( 'weglot_get_replace_modify_link', 'prefix_weglot_get_replace_modify_link' );
2
function prefix_weglot_get_replace_modify_link( $data ) {
3
// Code
4
return $data;
5
}
Copied!

Hook: weglot_get_flag_class

Description

File: ./src/services/class-button-service-weglot.php
Type: Filter
Parameter: $flag_class

Declaration:

1
return apply_filters( 'weglot_get_flag_class', $flag_class );
Copied!

Code exemple:

1
add_filter( 'weglot_get_flag_class', 'prefix_weglot_get_flag_class' );
2
function prefix_weglot_get_flag_class( $flag_class ) {
3
// Code
4
return $flag_class;
5
}
Copied!

Hook: weglot_get_name_with_language_entry

Description

File: ./src/services/class-button-service-weglot.php
Type: Filter
Parameters: $name, $language_entry

Declaration:

1
return apply_filters( 'weglot_get_name_with_language_entry', $name, $language_entry );
Copied!

Code exemple:

1
add_filter( 'weglot_get_name_with_language_entry', 'prefix_weglot_get_name_with_language_entry', 10, 2 );
2
function prefix_weglot_get_name_with_language_entry( $name, $language_entry ) {
3
// Code
4
return $name;
5
}
Copied!

Hook: weglot_get_class_dropdown

Description

File: ./src/services/class-button-service-weglot.php
Type: Filter
Parameter: $class

Declaration:

1
return apply_filters( 'weglot_get_class_dropdown', $class );
Copied!

Code exemple:

1
add_filter( 'weglot_get_class_dropdown', 'prefix_weglot_get_class_dropdown' );
2
function prefix_weglot_get_class_dropdown( $class ) {
3
// Code
4
return $class;
5
}
Copied!

Hook: weglot_button_html

Description

File: ./src/services/class-button-service-weglot.php
Type: Filter
Parameters: $button_html, $add_class

Declaration:

1
return apply_filters( 'weglot_button_html', $button_html, $add_class );
Copied!

Code exemple:

1
add_filter( 'weglot_button_html', 'prefix_weglot_button_html', 10, 2 );
2
function prefix_weglot_button_html( $button_html, $add_class ) {
3
// Code
4
return $button_html;
5
}
Copied!

Hook: weglot_link_language

Description

File: ./src/services/class-custom-url-service-weglot.php
Type: Filter
Parameters: $url_lang, $key_code

Declaration:

1
$link_button = apply_filters( 'weglot_link_language', $url_lang, $key_code );
Copied!

Code exemple:

1
add_filter( 'weglot_link_language', 'prefix_weglot_link_language', 10, 2 );
2
function prefix_weglot_link_language( $url_lang, $key_code ) {
3
// Code
4
return $url_lang;
5
}
Copied!

Hook: weglot_get_link_with_key_code

Description

File: ./src/services/class-custom-url-service-weglot.php
Type: Filter
Parameter: $link_button

Declaration:

1
return apply_filters( 'weglot_get_link_with_key_code', $link_button );
Copied!

Code exemple:

1
add_filter( 'weglot_get_link_with_key_code', 'prefix_weglot_get_link_with_key_code' );
2
function prefix_weglot_get_link_with_key_code( $link_button ) {
3
// Code
4
return $link_button;
5
}
Copied!

Hook: weglot_get_link_button_with_key_code

Description

File: ./src/services/class-custom-url-service-weglot.php
Type: Filter
Parameter: $link_button

Declaration:

1
return apply_filters( 'weglot_get_link_button_with_key_code', $link_button );
Copied!

Code exemple:

1
add_filter( 'weglot_get_link_button_with_key_code', 'prefix_weglot_get_link_button_with_key_code' );
2
function prefix_weglot_get_link_button_with_key_code( $link_button ) {
3
// Code
4
return $link_button;
5
}
Copied!

Hook: weglot_get_dom_checkers

Description

File: ./src/services/class-dom-checkers-service-weglot.php
Type: Filter
Parameter: $checkers

Declaration:

1
return apply_filters( 'weglot_get_dom_checkers', $checkers );
Copied!

Code exemple:

1
add_filter( 'weglot_get_dom_checkers', 'prefix_weglot_get_dom_checkers' );
2
function prefix_weglot_get_dom_checkers( $checkers ) {
3
// Code
4
return $checkers;
5
}
Copied!

Hook: weglot_get_dom_listeners

Description

File: ./src/services/class-dom-listeners-service-weglot.php
Type: Filter
Parameter: $dom_listeners

Declaration:

1
return apply_filters( 'weglot_get_dom_listeners', $this->dom_listeners );
Copied!

Code exemple:

1
add_filter( 'weglot_get_dom_listeners', 'prefix_weglot_get_dom_listeners' );
2
function prefix_weglot_get_dom_listeners( $dom_listeners ) {
3
// Code
4
return $dom_listeners;
5
}
Copied!

Hook: weglot_replace_div_id

Description

File: ./src/services/class-generate-switcher-service-weglot.php
Type: Filter
Parameter: $dom

Declaration:

1
return apply_filters( 'weglot_replace_div_id', $dom );
Copied!

Code exemple:

1
add_filter( 'weglot_replace_div_id', 'prefix_weglot_replace_div_id' );
2
function prefix_weglot_replace_div_id( $dom ) {
3
// Code
4
return $dom;
5
}
Copied!

Hook: weglot_replace_weglot_menu

Description

File: ./src/services/class-generate-switcher-service-weglot.php
Type: Filter
Parameter: $dom

Declaration:

1
return apply_filters( 'weglot_replace_weglot_menu', $dom );
Copied!

Code exemple:

1
add_filter( 'weglot_replace_weglot_menu', 'prefix_weglot_replace_weglot_menu' );
2
function prefix_weglot_replace_weglot_menu( $dom ) {
3
// Code
4
return $dom;
5
}
Copied!

Hook: weglot_render_default_button

Description

File: ./src/services/class-generate-switcher-service-weglot.php
Type: Filter
Parameter: $dom

Declaration:

1
return apply_filters( 'weglot_render_default_button', $dom );
Copied!

Code exemple:

1
add_filter( 'weglot_render_default_button', 'prefix_weglot_render_default_button' );
2
function prefix_weglot_render_default_button( $dom ) {
3
// Code
4
return $dom;
5
}
Copied!

Hook: weglot_generate_switcher_from_dom

Description

File: ./src/services/class-generate-switcher-service-weglot.php
Type: Filter
Parameter: $dom

Declaration:

1
return apply_filters( 'weglot_generate_switcher_from_dom', $dom );
Copied!

Code exemple:

1
add_filter( 'weglot_generate_switcher_from_dom', 'prefix_weglot_generate_switcher_from_dom' );
2
function prefix_weglot_generate_switcher_from_dom( $dom ) {
3
// Code
4
return $dom;
5
}
Copied!

Hook: weglot_href_lang

Description

File: ./src/services/class-href-lang-service-weglot.php
Type: Filter
Parameter: $render

Declaration:

1
return apply_filters( 'weglot_href_lang', $render );
Copied!

Code exemple:

1
add_filter( 'weglot_href_lang', 'prefix_weglot_href_lang' );
2
function prefix_weglot_href_lang( $render ) {
3
// Code
4
return $render;
5
}
Copied!

Hook: weglot_current_language_entry

Description

File: ./src/services/class-language-service-weglot.php
Type: Filter
Parameter: $key_code

Declaration:

1
$current_language_entry = apply_filters( 'weglot_current_language_entry', $key_code );
Copied!

Code exemple:

1
add_filter( 'weglot_current_language_entry', 'prefix_weglot_current_language_entry' );
2
function prefix_weglot_current_language_entry( $key_code ) {
3
// Code
4
return $key_code;
5
}
Copied!

Hook: weglot_get_options_from_cdn_cache

Description

File: ./src/services/class-option-service-weglot.php
Type: Filter
Parameter: $bool

Declaration:

1
$cache_transient = apply_filters( 'weglot_get_options_from_cdn_cache', true );
Copied!

Code exemple:

1
add_filter( 'weglot_get_options_from_cdn_cache', 'prefix_weglot_get_options_from_cdn_cache' );
2
function prefix_weglot_get_options_from_cdn_cache( $bool ) {
3
// Code
4
return $bool;
5
}
Copied!

Hook: weglot_get_options_from_cdn_cache_duration

Description

File: ./src/services/class-option-service-weglot.php
Type: Filter
Parameter: $300

Declaration:

1
set_transient( 'weglot_cache_cdn', $body, apply_filters( 'weglot_get_options_from_cdn_cache_duration', 300 ) );
Copied!

Code exemple:

1
add_filter( 'weglot_get_options_from_cdn_cache_duration', 'prefix_weglot_get_options_from_cdn_cache_duration' );
2
function prefix_weglot_get_options_from_cdn_cache_duration( $300 ) {
3
// Code
4
return $300;
5
}
Copied!

Hook: weglot_get_options

Description

File: ./src/services/class-option-service-weglot.php
Type: Filter
Parameters: $array_merge, $body

Declaration:

1
$options = apply_filters( 'weglot_get_options', array_merge( $this->get_options_bdd_v3(), $body ) );
Copied!

Code exemple:

1
add_filter( 'weglot_get_options', 'prefix_weglot_get_options', 10, 2 );
2
function prefix_weglot_get_options( $array_merge, $body ) {
3
// Code
4
return $array_merge;
5
}
Copied!

Hook: weglot_get_api_key

Description

File: ./src/services/class-option-service-weglot.php
Type: Filter
Parameter: $api_key

Declaration:

1
return apply_filters( 'weglot_get_api_key', $api_key );
Copied!

Code exemple:

1
add_filter( 'weglot_get_api_key', 'prefix_weglot_get_api_key' );
2
function prefix_weglot_get_api_key( $api_key ) {
3
// Code
4
return $api_key;
5
}
Copied!

Hook: weglot_get_api_key

Description

File: ./src/services/class-option-service-weglot.php
Type: Filter
Parameter: $options

Declaration:

1
return apply_filters( 'weglot_get_api_key', $options['api_key'] );
Copied!

Code exemple:

1
add_filter( 'weglot_get_api_key', 'prefix_weglot_get_api_key' );
2
function prefix_weglot_get_api_key( $options ) {
3
// Code
4
return $options;
5
}
Copied!

Hook: weglot_get_options

Description

File: ./src/services/class-option-service-weglot.php
Type: Filter
Parameters: $array_merge, $options

Declaration:

1
$options = apply_filters( 'weglot_get_options', array_merge( $this->options_bdd_default, $this->get_options_bdd_v3(), $options ) );
Copied!

Code exemple:

1
add_filter( 'weglot_get_options', 'prefix_weglot_get_options', 10, 2 );
2
function prefix_weglot_get_options( $array_merge, $options ) {
3
// Code
4
return $array_merge;
5
}
Copied!

Hook: weglot_exclude_blocks

Description

Permet de modifier l'array des exclusions par défault. Par exemple si on veut enlever de la liste des exclusions un élement on peut utiliser ce filtre. (Voir exemple ci dessous)
File: ./src/services/class-option-service-weglot.php
Type: Filter
Parameter: $exclude_blocks

Declaration:

1
return apply_filters( 'weglot_exclude_blocks', $exclude_blocks );
Copied!

Code exemple:

1
// Ce code permet d'enlever .amount de l'exclusion
2
add_filter( 'weglot_exclude_blocks', 'prefix_weglot_exclude_blocks' );
3
function prefix_weglot_exclude_blocks( $exclude_blocks ) {
4
unset($exclude_blocks[array_search(".amount", $exclude_blocks)]);
5
return $exclude_blocks;
6
}
Copied!

Hook: weglot_destination_languages

Description

File: ./src/services/class-option-service-weglot.php
Type: Filter
Parameter: $destination_languages

Declaration:

1
return apply_filters( 'weglot_destination_languages', $destination_languages );
Copied!

Code exemple:

1
add_filter( 'weglot_destination_languages', 'prefix_weglot_destination_languages' );
2
function prefix_weglot_destination_languages( $destination_languages ) {
3
// Code
4
return $destination_languages;
5
}
Copied!

Hook: weglot_css_custom_inline

Description

File: ./src/services/class-option-service-weglot.php
Type: Filter
Parameter: $get_option

Declaration:

1
return apply_filters( 'weglot_css_custom_inline', $this->get_option( 'override_css' ) );
Copied!

Code exemple:

1
add_filter( 'weglot_css_custom_inline', 'prefix_weglot_css_custom_inline' );
2
function prefix_weglot_css_custom_inline( $get_option ) {
3
// Code
4
return $get_option;
5
}
Copied!

Hook: weglot_flag_css

Description

File: ./src/services/class-option-service-weglot.php
Type: Filter
Parameter: $get_option

Declaration:

1
return apply_filters( 'weglot_flag_css', $this->get_option( 'flag_css' ) );
Copied!

Code exemple:

1
add_filter( 'weglot_flag_css', 'prefix_weglot_flag_css' );
2
function prefix_weglot_flag_css( $get_option ) {
3
// Code
4
return $get_option;
5
}
Copied!

Hook: weglot_get_translation_engine

Description

File: ./src/services/class-option-service-weglot.php
Type: Filter
Parameter: $get_option

Declaration:

1
return apply_filters( 'weglot_get_translation_engine', $this->get_option( 'translation_engine' ) );
Copied!

Code exemple:

1
add_filter( 'weglot_get_translation_engine', 'prefix_weglot_get_translation_engine' );
2
function prefix_weglot_get_translation_engine( $get_option ) {
3
// Code
4
return $get_option;
5
}
Copied!

Hook: weglot_parser_config_provider

Description

File: ./src/services/class-parser-service-weglot.php
Type: Filter
Parameter: $serverconfigprovider

Declaration:

1
$config = apply_filters( 'weglot_parser_config_provider', new ServerConfigProvider() );
Copied!

Code exemple:

1
add_filter( 'weglot_parser_config_provider', 'prefix_weglot_parser_config_provider' );
2
function prefix_weglot_parser_config_provider( $serverconfigprovider ) {
3
// Code
4
return $serverconfigprovider;
5
}
Copied!

Hook: weglot_get_parser_ignored_nodes

Description

File: ./src/services/class-parser-service-weglot.php
Type: Filter
Parameter: $parser_getignorednodesformatter_getignorednodes

Declaration:

1
$ignored_nodes = apply_filters( 'weglot_get_parser_ignored_nodes', $parser->getIgnoredNodesFormatter()->getIgnoredNodes() );
Copied!

Code exemple:

1
add_filter( 'weglot_get_parser_ignored_nodes', 'prefix_weglot_get_parser_ignored_nodes' );
2
function prefix_weglot_get_parser_ignored_nodes( $parser_getignorednodesformatter_getignorednodes ) {
3
// Code
4
return $parser_getignorednodesformatter_getignorednodes;
5
}
Copied!

Hook: weglot_redirection_language_exception

Description

File: ./src/services/class-redirect-service-weglot.php
Type: Filter
Parameter: $server_lang

Declaration:

1
return apply_filters( 'weglot_redirection_language_exception', $server_lang );
Copied!

Code exemple:

1
add_filter( 'weglot_redirection_language_exception', 'prefix_weglot_redirection_language_exception' );
2
function prefix_weglot_redirection_language_exception( $server_lang ) {
3
// Code
4
return $server_lang;
5
}
Copied!

Hook: weglot_url_auto_redirect

Description

File: ./src/services/class-redirect-service-weglot.php
Type: Filter
Parameter: $request_url_services_get_weglot_url_getforlanguage

Declaration:

1
$url_auto_redirect = apply_filters( 'weglot_url_auto_redirect', $this->request_url_services->get_weglot_url()->getForLanguage( $server_lang ) );
Copied!