Example #1
0
function appthemes_get_edit_profile_url()
{
    if ($page_id = APP_User_Profile::get_id()) {
        return get_permalink($page_id);
    }
    return get_edit_profile_url(get_current_user_id());
}
Example #2
0
 static function get_id()
 {
     return parent::_get_id(__CLASS__);
 }
Example #3
0
 function update()
 {
     if (!isset($_POST['action']) || 'app-edit-profile' != $_POST['action']) {
         return;
     }
     check_admin_referer('app-edit-profile');
     do_action('personal_options_update', $_POST['user_id']);
     parent::update();
 }