m_cache = $cache; add_action('show_user_profile', array(&$this, 'action_user_profile')); add_action('edit_user_profile', array(&$this, 'action_user_profile')); add_action('profile_update', array(&$this, 'action_profile_update')); } // --------------------------------------------------------------------------- // hooks // --------------------------------------------------------------------------- function action_user_profile() { global $profileuser; if ($profileuser->has_cap(ExecPhp_CAPABILITY_EXECUTE_ARTICLES)) { $usermeta =& $this->m_cache->get_usermeta($profileuser->ID); ?>
has_cap(ExecPhp_CAPABILITY_EXECUTE_ARTICLES)) { $usermeta =& $this->m_cache->get_usermeta($user_id); $usermeta->set_from_POST(); $usermeta->save(); } } } endif; ?>