/** * Adds a 'View Admin As: Reset view' link to the Meta sidebar widget if the admin bar is hidden * * @since 1.6 * @access public */ public function action_wp_meta() { if (!is_admin_bar_showing() && $this->store->get_viewAs()) { $link = __('View Admin As', 'view-admin-as') . ': ' . __('Reset view', 'view-admin-as'); $url = VAA_API::get_reset_link(); echo '<li id="vaa_reset_view"><a href="' . esc_url($url) . '">' . esc_html($link) . '</a></li>'; } }
protected function set_scriptLocalization($var, $key = false, $append = false) { $this->scriptLocalization = VAA_API::set_array_data($this->scriptLocalization, $var, $key, $append); }
public function set_userMeta($var, $key = false, $append = false) { $this->userMeta = VAA_API::set_array_data($this->userMeta, $var, $key, $append); }
/** * Get current modules * If a key is provided it will only return that module * * @since 1.5 * @access public * @param string|bool $key The module key * @return array|object */ public function get_modules($key = false) { return VAA_API::get_array_data($this->modules, $key); }