Skip to content

Profile Tabs

PeepSo EDD adds up to two navigation tabs to the PeepSo member profile: EDD Checkout and Purchase History. Both are added through the peepso_navigation_profile filter and rendered through PeepSo profile segments.

Both tabs follow the same rules:

  • The viewer must be logged in.
  • On a PeepSo profile view, the tab is added only when the current user is viewing their own profile. It is not added when viewing another member’s profile.
  • The tab is added only when its owner-level toggle is enabled (wbpeddi_enable_edd-checkout / wbpeddi_enable_edd-purchase-history).
  • The label defaults to “EDD Checkout” / “Purchase History” but uses the custom label set by the owner when one is provided.

The visibility of each tab can also be overridden programmatically with the wbpeddi_show_tab_on_peepso_profile filter (see Hooks and filters).

Slug: edd-checkout.

  • Renders EDD’s [download_checkout] shortcode inside a PeepSo profile page wrapper.
  • The plugin forces EDD’s edd_is_checkout check to return true on this segment, so EDD enqueues its checkout scripts and styles as it would on the standalone checkout page.
  • Remove item from cart: the edd_remove_item_url filter and a template_redirect handler rewrite the remove-item link so removing a cart item returns the member to the profile checkout tab instead of the standalone EDD checkout page.
  • Purchase confirmation: after a successful payment that started from the profile checkout, edd_success_page_redirect sends the member to an edd-purchase-confirmation segment on the profile, which renders the receipt via [edd_receipt].

Slug: edd-purchase-history.

  • Renders EDD’s [purchase_history] shortcode inside a PeepSo profile page wrapper.
  • View receipt: the edd_get_success_page_uri filter rewrites the “view details” links so an order opens on an edd-purchase-details segment on the profile, rendered via [edd_receipt].
  • Checkout URI: the edd_get_checkout_uri filter keeps EDD’s checkout URL pointing at the profile checkout tab so re-entry into a pending payment stays inside the profile.
  • Pagination: the paginate_links filter rewrites purchase-history pagination so page links stay on the profile Purchase History tab and use a paged query argument.

Both tabs use a PeepSo icon class combined with the plugin’s own icon font (assets/css/peepso-woo-icons.css, with an RTL build under assets/css-rtl/). The stylesheet is enqueued on the front end, and a small inline CSS fix is added on PeepSo profile pages so the EDD payment-mode radio inputs stay visible inside the profile wrapper.