pmpro-sponsored-members icon indicating copy to clipboard operation
pmpro-sponsored-members copied to clipboard

Feature Request: Block support on membership account page

Open dparker1005 opened this issue 5 years ago • 2 comments

Currently, we add a sponsoring member's sponsor code and linked accounts to their membership account page by appending them to the end of the account sections: https://github.com/strangerstudios/pmpro-sponsored-members/blob/2d9612ad4422d1f078f5dd704273b3f4b9b16f38/pmpro-sponsored-members.php#L1792-L1879

Since we now give the option to add a single element of the account page via a block in PMPro core, it would be intuitive to allow the sponsored members portion to function as a block as well.

Support Ticket (admins only): https://www.paidmembershipspro.com/forums/topic/shortcode-or-recipe-for-sponsored-members-section-of-account/

dparker1005 avatar Aug 17 '20 15:08 dparker1005

I see this being added in the future, people may be able to use custom CSS to hide this section for now.

andrewlimaza avatar Oct 05 '20 14:10 andrewlimaza

To show Sponsored Membership Block on OTHER pages besides the members-account page you will need custom code, and include your page ID. https://gist.github.com/kimwhite/93c0b9ef0b687bb7a1c052416c2a68e3

kimwhite avatar Nov 08 '21 22:11 kimwhite