Class WPGlobus
Class WPGlobus
Methods summary
public static
string
|
|
public static
string
|
|
public static
string
|
|
public
|
|
public
array
|
|
public
|
|
public
|
|
public
string
|
|
public static
|
#
init( )
Start WPGlobus on "init" hook, so if there is another ReduxFramework, it will be loaded first. Hopefully :-) Note: "init" hook is not guaranteed to stay in the future versions. |
public static
|
#
activated( string $plugin )
Set transient wpglobus_activated after activated plugin @see on_admin_init() |
public
string
|
|
public
boolean
|
|
public
boolean
|
|
public
|
|
public
|
|
public
|
|
public
array
|
|
public
string
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
array
|
#
on_get_convert_url_menu_items( $sorted_menu_items )
We must convert url for nav_menu_item with type == custom For other types url has language shortcode already |
public
|
|
public
|
|
public
|
|
public
|
|
public
string
|
#
filter__wp_list_pages( string $output )
Append language switcher dropdown or flat to a navigation menu, which was created with |
public
string
|
#
on_wp_list_pages( string $output )
Append language switcher dropdown to a navigation menu, which was created with |
public
array
|
|
public
string
|
|
public
array
|
|
public static
array
|
|
public
|
|
public static
string
|
|
public
array
|
|
public
|
#
on_add_taxonomy_form_wrapper( )
Add wrapper for every table in enabled languages at edit-tags.php page |
public
|
#
on_add_language_tabs_edit_taxonomy( $object, $taxonomy )
Add language tabs for edit taxonomy name at edit-tags.php page |
public
|
|
public
|
#
on_add_title_fields( WP_Post $post )
Add title fields for enabled languages at post.php, post-new.php page |
public
boolean
|
|
public static
array
|
|
public
string
|
|
public
|
#
on_admin_footer( )
Make correct Site Title in admin bar. Make template for Site Title (option blogname) a Tagline (option blogdescription) at options-general.php page. |
public static
|
|
public static
|
|
public
|
|
public
|
|
public
string
|
|
public
|
Constants summary
string |
LOCALE_TAG
|
#
'{:%s}%s{:}'
|
string |
LOCALE_TAG_START
|
#
'{:%s}'
|
string |
LOCALE_TAG_END
|
#
'{:}'
|
string |
LOCALE_TAG_OPEN
|
#
'{:'
|
string |
LOCALE_TAG_CLOSE
|
#
'}'
|
string |
URL_WPGLOBUS_SITE
|
#
'https://wpglobus.com/'
|
string |
OPTIONS_PAGE_SLUG
Options page slug needed to get access to settings page |
#
'wpglobus_options'
|
string |
LANGUAGE_EDIT_PAGE
Language edit page |
#
'wpglobus_language_edit'
|
string |
PAGE_WPGLOBUS_ABOUT
WPGlobus about page |
#
'wpglobus-about'
|
string |
PAGE_WPGLOBUS_ADDONS
WPGlobus addons page |
#
'wpglobus-addons'
|
string |
PAGE_WPGLOBUS_CLEAN
WPGlobus clean page |
#
'wpglobus-clean'
|
string |
PAGE_WPGLOBUS_HELPDESK
WPGlobus HelpDesk page |
#
'wpglobus-helpdesk'
|
string |
RETURN_IN_DEFAULT_LANGUAGE
|
#
'in_default_language'
|
string |
RETURN_EMPTY
|
#
'empty'
|
Properties summary
public static
string
|
$minimalReduxFramework_version
|
#
'3.2.9.4'
|
public
array
|
$menus
List navigation menus |
#
array()
|
public static
string
|
$PLUGIN_DIR_PATH
Initialized at plugin loader |
#
''
|
public static
string
|
$PLUGIN_DIR_URL
Initialized at plugin loader |
#
''
|
protected static
boolean
|
$_SCRIPT_DEBUG
$_SCRIPT_DEBUG Internal representation of the define('SCRIPT_DEBUG') |
#
false
|
protected static
string
|
$_SCRIPT_SUFFIX
$_SCRIPT_SUFFIX Whether to use minimized or full versions of JS and CSS. |
#
'.min'
|
public
array
|
$vendors_scripts
Support third party plugin vendors |
#
array()
|
public
array
|
$disabled_entities
Don't make some updates at post screen and don't load scripts for this entities |
#
array()
|
public
array
|
$enabled_pages
Array of enabled pages for loading scripts, styles to achieve WPGlobusCore, WPGlobusDialogApp |
#
array()
|