Documentation

ClassFrontend
in package

Class Frontend.

Handle all Request to to browser Frontend

Tags
since
1.0.0

Table of Contents

Properties

$base_domain  : mixed
$domain  : mixed
$domains  : mixed
$lang_codes  : mixed
$options  : mixed
$source_lang_code  : mixed
$target_lang_code  : mixed

Methods

__construct()  : mixed
Class Constructor.
add_scripts()  : void
Add the extra plugins JavaScript files, like google translate and its callback ini functions.
add_styles()  : void
Add the extra plugins CSS files for hiding the google trans tool bar See doc https://developer.wordpress.org/reference/functions/wp_register_style/.
is_active()  : boolen
Check if the plugin is set Active.
set_domain()  : string
Set Class Propertier like actual Domain.
set_lang_codes()  : void
Class function to set all set domain target language combinations.

Properties

Methods

__construct()

Class Constructor.

public __construct() : mixed

If Source and Target is set, init the plugins

Tags
since
1.0.0

add_scripts()

Add the extra plugins JavaScript files, like google translate and its callback ini functions.

public add_scripts() : void
Tags
since
1.0.0

add_styles()

Add the extra plugins CSS files for hiding the google trans tool bar See doc https://developer.wordpress.org/reference/functions/wp_register_style/.

public add_styles() : void
Tags
since
1.0.0

is_active()

Check if the plugin is set Active.

public is_active() : boolen
Tags
since
1.0.0
Return values
boolen
  • true or false

set_domain()

Set Class Propertier like actual Domain.

public set_domain() : string
Tags
since
1.0.0
Return values
string
  • Actual Domain

set_lang_codes()

Class function to set all set domain target language combinations.

public set_lang_codes(mixed $domain, mixed $options) : void
Parameters
$domain : mixed
$options : mixed
Tags
since
1.0.0

        
On this page

Search results