Uses
| Uses | Description |
|---|---|
| wp-includes/load.php: is_ssl() | Determines if SSL is used. |
| wp-includes/functions.php: _deprecated_argument() | Mark a function argument as deprecated and inform when it has been used. |
(string) (Required)
(string|array|void)
File: wp-includes/class-wp-admin-bar.php
public function __get( $name ) {
switch ( $name ) {
case 'proto':
return is_ssl() ? 'https://' : 'http://';
case 'menu':
_deprecated_argument( 'WP_Admin_Bar', '3.3.0', 'Modify admin bar nodes with WP_Admin_Bar::get_node(), WP_Admin_Bar::add_node(), and WP_Admin_Bar::remove_node(), not the <code>menu</code> property.' );
return array(); // Sorry, folks.
}
}
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_admin_bar/__get