WP_Admin_Bar::__get( string $name )

Parameters Parameters


(string) (Required)

Top ↑

Return Return


Top ↑

Source Source

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.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.