The LearnDash Profile block allows students to view enrolled courses and edit their profiles. However, the “Edit Profile” link sometimes appears non-functional—the page reloads without navigating anywhere.
Root Cause
This issue is not a LearnDash bug. The Edit Profile link uses WordPress’s core get_edit_user_link() function, which directs to /wp-admin/profile.php. When this functionality breaks, “another plugin is meddling with default WordPress behavior”—most commonly WooCommerce.
Solutions
Option 1: Configure WooCommerce’s My Account Page
Step 1: Create a new page titled “My Account”
Step 2: Add the shortcode:
[woocommerce_my_account]
Step 3: Configure WooCommerce settings:
- Navigate to WooCommerce → Settings → Advanced tab
- Select your “My Account” page
Step 4: Students can now click “Edit Profile” to access the My Account page, where they can select “Account details” to edit their name, email, and password.
Option 2: Restore WordPress Default Behavior
Add this PHP code snippet to restore admin access:
add_filter( 'woocommerce_prevent_admin_access', '__return_false' );
This disables WooCommerce’s admin access prevention, allowing WordPress’s standard profile editing to function normally.