MyAccountTag.php
1 month ago
account-settings.tmpl.php
3 years ago
billing-details.tmpl.php
1 year ago
change-password.tmpl.php
1 year ago
dashboard.tmpl.php
3 years ago
delete-account.tmpl.php
1 year ago
downloads.tmpl.php
1 year ago
edit-profile.tmpl.php
1 year ago
email-notifications.tmpl.php
3 years ago
index.php
5 years ago
orders.tmpl.php
3 years ago
subscriptions.tmpl.php
1 year ago
view-order.tmpl.php
1 year ago
view-subscription.tmpl.php
1 year ago
account-settings.tmpl.php
44 lines
| 1 | <?php |
| 2 | |
| 3 | use ProfilePress\Core\ShortcodeParser\MyAccount\MyAccountTag; |
| 4 | |
| 5 | if ( ! defined('ABSPATH')) { |
| 6 | exit; // Exit if accessed directly |
| 7 | } |
| 8 | |
| 9 | $current_user = get_user_by('id', get_current_user_id()); |
| 10 | |
| 11 | do_action('ppress_myaccount_account_settings_before_main_content'); |
| 12 | |
| 13 | ?> |
| 14 | <div class="profilepress-myaccount-notification"> |
| 15 | |
| 16 | <h2><?= esc_html__('Account Settings', 'wp-user-avatar') ?></h2> |
| 17 | |
| 18 | <?php |
| 19 | |
| 20 | do_action('ppress_myaccount_account_settings_after_heading'); |
| 21 | |
| 22 | $contents = MyAccountTag::account_settings_endpoint_content(); |
| 23 | |
| 24 | if ( ! empty($contents)) { |
| 25 | |
| 26 | foreach ($contents as $content) { |
| 27 | ?> |
| 28 | <div class="profilepress-myaccount-account-settings-wrap"> |
| 29 | |
| 30 | <h3><?= $content['title']; ?></h3> |
| 31 | |
| 32 | <div class="profilepress-myaccount-form-wrap"> |
| 33 | <?= $content['content']; ?> |
| 34 | </div> |
| 35 | |
| 36 | </div> |
| 37 | <?php |
| 38 | } |
| 39 | } |
| 40 | ?> |
| 41 | </div> |
| 42 | <?php |
| 43 | |
| 44 | do_action('ppress_myaccount_account_settings_after_main_content'); |