_get_admin_bar_pref


_get_admin_bar_pref ( $context = 'front', $user = 0 )

Access:
  • private
Parameters:
  • (string) $context Context of this preference check. Defaults to 'front'. The 'admin' preference is no longer used.
  • (int) $user Optional. ID of the user to check, defaults to 0 for current user.
Returns:
  • (bool) Whether the admin bar should be showing for this user.
Defined at:

Description

Retrieve the admin bar display preference of a user.

Related Functions

get_admin_page_parent, get_admin_url, wp_admin_bar_render, wp_admin_bar_wp_menu, _wp_admin_bar_init

Top Google Results

User discussions

wpseek mobile