Memory Wiki

Untitled Session

2026-05-31 02:11 UTC · 12 messages · cli

You2026-05-31 02:11 UTC
Delete all menu items from the Main Menu on testing.jaimisaunders.com while keeping the empty menu assigned to the 'primary' location.
Donna2026-05-31 02:11 UTC
Let me first get the menu ID and verify the current state.
Tool2026-05-31 02:11 UTC
{"output": "Error: YIKES! It looks like you're running this as root. You probably meant to run this as the user that your WordPress installation exists under.\n\nIf you REALLY mean to run this as root, we won't stop you, but just bear in mind that any code on this site will then have full control of...
Donna2026-05-31 02:11 UTC
Tool2026-05-31 02:11 UTC
{"output": "term_id\tname\tslug\tlocations\tcount\n23\tMain Menu\tmain-menu\tprimary\t8", "exit_code": 0, "error": null}
Donna2026-05-31 02:11 UTC
Good — menu ID 23, 8 items, assigned to 'primary'. Let me list its items then delete them all.
Tool2026-05-31 02:11 UTC
{"output": "db_id\ttype\ttitle\tlink\tposition\n51\tpost_type\tYour Profile\thttps://testing.jaimisaunders.com/membership-account/your-profile/\t1\n52\tpost_type\tMembership Levels\thttps://testing.jaimisaunders.com/membership-levels/\t2\n53\tpost_type\tMembership Orders\thttps://testing.jaimisaunde...
Donna2026-05-31 02:11 UTC
Deleting all 8 items (db_ids 51-58) in one command.
Tool2026-05-31 02:11 UTC
{"output": "Success: Deleted 8 of 8 menu items.", "exit_code": 0, "error": null}
Donna2026-05-31 02:11 UTC
All 8 items deleted. Let me verify the final state.
Tool2026-05-31 02:11 UTC
{"output": "term_id\tname\tslug\tlocations\tcount\n23\tMain Menu\tmain-menu\tprimary\t0", "exit_code": 0, "error": null}
Donna2026-05-31 02:11 UTC
## Summary **What I did:** 1. Identified the "Main Menu" menu — `term_id=23`, assigned to `primary` location, with 8 items. 2. Listed the 8 items (db_ids 51–58, all membership-related pages). 3. Deleted all 8 menu items via `wp menu item delete 51 52 53 54 55 56 57 58`. 4. Verified the final state. **Result:** The "Main Menu" (term_id 23) **still exists**, is **still assigned to 'primary'**, and now has **0 items** — exactly as requested. An empty menu at the 'primary' location will prevent WordPress from falling back to a page list, while the BuddyX theme's icon bar (from `buddypress-profile.php`) continues rendering independently. **No files were created or modified.** All work was done via wp-cli inside the Docker container `testing-app-1`.