public function display_tablenav($which) { if ('top' == $which) { $_SERVER['REQUEST_URI'] = $this->wp->removeQueryArgument('_wp_http_referer', $_SERVER['REQUEST_URI']); } parent::display_tablenav($which); }
/** * Retrieve user meta field for current logged in user * * @param string $key * @return string */ protected function getCurrentUserMeta($key) { return $this->wp->getUserMeta($this->wp->getCurrentUserId(), $key, true); }
protected function defineConstants() { defined('WP_DB_PREFIX') or define('WP_DB_PREFIX', $this->wp->getTablePrefix()); defined('WPT_DB_PREFIX') or define('WPT_DB_PREFIX', WP_DB_PREFIX . 't_'); defined('DB_TYPE') or define('DB_TYPE', 'mysql'); }