WPGlobus
  • Package
  • Class

Packages

  • WPGlobus
    • ACF
    • Admin
      • Customizer
      • HelpDesk
      • Options
        • Field
    • All-in-One-SEO
    • Compat
    • MailChimp
    • RevSlider
    • The-Events-Calendar
    • Yoast

Classes

  • WPGlobus
  • WPGlobus_Config
  • WPGlobus_Core
  • WPGlobus_Filters
  • WPGlobus_Plugin
  • WPGlobus_Utils
  • WPGlobus_WP
  • WPGlobusWidget

Class WPGlobus_Config

Class WPGlobus_Config

Package: WPGlobus
Located at includes/class-wpglobus-config.php

Methods summary

public
# __construct( )

Constructor

Constructor

public
# init_current_language( )

Set the current language: if not found in the URL or REFERER, then keep the default

Set the current language: if not found in the URL or REFERER, then keep the default

Since

1.1.1
public
# on_activate( stdClass $object = null, array $options = array() )

Check plugin version and update versioning option

Check plugin version and update versioning option

Parameters

$object
Plugin_Upgrader
$options
public
# set_language( string $locale )

Set current language

Set current language

Parameters

$locale
public boolean
# is_enabled_locale( string $locale )

Check for enabled locale

Check for enabled locale

Parameters

$locale

Returns

boolean

Since

1.0.10
public
# on_load_textdomain( )

Load textdomain

Load textdomain

Since

1.0.0
public
# _set_flags_url( )

Set flags URL

Set flags URL

public
# _set_languages( )

Set languages by default

Set languages by default

protected
# _init_language_table( )

Initialize the language table with the hard-coded names, locales and flags.

Initialize the language table with the hard-coded names, locales and flags.

See

_set_languages For the hard-coded table.
protected
# _get_options( )

Get options from DB and wp-config.php

Get options from DB and wp-config.php

Properties summary

public string $default_language

Language by default

Language by default

# 'en'
public string $language

Current language. Should be set to default initially.

Current language. Should be set to default initially.

# 'en'
public string[] $enabled_languages

Enabled languages

Enabled languages

# array( 'en', 'es', 'de', 'fr', 'ru', )
public boolean $hide_default_language

Hide from URL language by default

Hide from URL language by default

# true
public string[] $open_languages

Opened languages

Opened languages

# array()
public array $flag

Flag images configuration Look in /flags/ directory for a huge list of flags for usage

Flag images configuration Look in /flags/ directory for a huge list of flags for usage

# array()
public string $flags_url

Location of flags (needs trailing slash!)

Location of flags (needs trailing slash!)

# ''
public array $language_name

Stores languages in pairs code=>name

Stores languages in pairs code=>name

# array()
public array $en_language_name

Stores languages names in English

Stores languages names in English

# array()
public array $locale

Stores locales

Stores locales

# array()
public array $enabled_locale

Stores enabled locales

Stores enabled locales

Since

1.0.10
# array()
public array $version

Stores version and update from WPGlobus Mini info

Stores version and update from WPGlobus Mini info

# array()
public string $show_flag_name

Use flag name for navigation menu : 'name' || 'code' || ''

Use flag name for navigation menu : 'name' || 'code' || ''

# 'code'
public string $nav_menu

Use navigation menu by slug for use in all nav menu set value to 'all'

Use navigation menu by slug for use in all nav menu set value to 'all'

# ''
public boolean $selector_wp_list_pages

Add language selector to navigation menu which was created with wp_list_pages

Add language selector to navigation menu which was created with wp_list_pages

Since

1.0.7
# true
public string $custom_css

Custom CSS

Custom CSS

# ''
public string $option

WPGlobus option key

WPGlobus option key

# 'wpglobus_option'
public static string $option_versioning

WPGlobus option versioning key

WPGlobus option versioning key

# 'wpglobus_option_versioning'
public string $option_language_names

WPGlobus option key for $language_name

WPGlobus option key for $language_name

# 'wpglobus_option_language_names'
public string $option_en_language_names

WPGlobus option key for $en_language_name

WPGlobus option key for $en_language_name

# 'wpglobus_option_en_language_names'
public string $option_locale

WPGlobus option key for $locale

WPGlobus option key for $locale

# 'wpglobus_option_locale'
public string $option_flags

WPGlobus option key for $flag

WPGlobus option key for $flag

# 'wpglobus_option_flags'
public string $option_post_meta_settings

WPGlobus option key for meta settings

WPGlobus option key for meta settings

# 'wpglobus_option_post_meta_settings'
public string $css_editor
# ''
public string $toggle

WPGlobus devmode.

WPGlobus devmode.

# 'on'
public array $disabled_entities
# array()
public array $extended_options

WPGlobus extended options can be added via filter 'wpglobus_option_sections'

WPGlobus extended options can be added via filter 'wpglobus_option_sections'

Since

1.2.3
# array()
WPGlobus API documentation generated by ApiGen