public function registration_form($atts) { $succeeded = $this->notices(); if ($succeeded) { return; } $is_free = SwpmSettings::get_instance()->get_value('enable-free-membership'); $free_level = absint(SwpmSettings::get_instance()->get_value('free-membership-id')); $level = isset($atts['level']) ? absint($atts['level']) : ($is_free ? $free_level : null); return SwpmFrontRegistration::get_instance()->regigstration_ui($level); }
public static function get_instance() { self::$_intance = empty(self::$_intance) ? new SwpmFrontRegistration() : self::$_intance; return self::$_intance; }
private function edit_profile() { $swpm_editprofile_submit = filter_input(INPUT_POST, 'swpm_editprofile_submit'); if (!empty($swpm_editprofile_submit)) { SwpmFrontRegistration::get_instance()->edit(); //TODO - do a redirect? } }