Skip Navigation
availability:

WPML Version: 3.2

description:

Returns a WPML setting value

type:
filter
category:
Miscellaneous
parameters:
apply_filters( 'wpml_setting', mixed|bool $default, string $key )
$default
(mixed|bool) (Required) The value to return if the settings key does not exist. Set to false if not using
$key
(string) (Required) The settings name key to return the value of
hook example usage:

Example

// $is_wpml_configured will return TRUE if WPML is fully setup and FALSE if not.
$is_wpml_configured = apply_filters( 'wpml_setting', false, 'setup_complete' );