Method | Description | |
---|---|---|
__construct ( |
Constructor. Sets up the properties. | |
replace_site_name ( WP_Admin_Bar $wp_admin_bar ) : WP_Admin_Bar | Replaces the current site's name with the site's alternative language title, if not empty. | |
replace_site_nodes ( WP_Admin_Bar $wp_admin_bar ) : WP_Admin_Bar | Replaces all site names with the individual site's alternative language title, if not empty. |
public __construct ( |
||
$titles | Title cache object. |
public replace_site_name ( WP_Admin_Bar $wp_admin_bar ) : WP_Admin_Bar | ||
$wp_admin_bar | WP_Admin_Bar | The WordPress admin bar object. |
return | WP_Admin_Bar | The manipulated WordPress admin bar object. |
public replace_site_nodes ( WP_Admin_Bar $wp_admin_bar ) : WP_Admin_Bar | ||
$wp_admin_bar | WP_Admin_Bar | The WordPress admin bar object. |
return | WP_Admin_Bar | The manipulated WordPress admin bar object. |