• Resolved marioznmd

    (@marioznmd)


    Hi and thanks for this awesome plugin.

    Im editing template ”membership-account” and i want the levels of subscription inside the 3 columns table to link to the appropriate page.

    Do i need to edit the files inside /shortcodes/ folder? and wich one?

    How can i accomplish the above modification?

    Thanks in advance!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Jarryd Long

    (@jarryd-long)

    Hi there, thank you for reaching out to the Paid Memberships Pro team.

    We recommend against making any changes to the plugin’s core code/files as these changes will be lost whenever you update the plugin.

    To override the Membership Account shortcode, you would need to create a new function that looks something like the following in your theme’s functions.php file, using the Code Snippets plugin or by creating a Code Snippets plugin (https://www.paidmembershipspro.com/create-a-plugin-for-pmpro-customizations/).

    function mypmpro_shortcode_account( $atts, $content=null, $code="" ){
          //copy code into here 
    }
    add_shortcode('mypmpro_account', 'mypmpro_shortcode_account');

    Once set up, copy the contents of the function (https://github.com/strangerstudios/paid-memberships-pro/blob/dev/shortcodes/pmpro_account.php#L7-L323) into your new function, make the relevant changes you need to make, and use the new shortcode [mypmpro_account] on your page.

    Kind Regards,
    Jarryd
    Support Manager at Paid Memberships Pro

    Thread Starter marioznmd

    (@marioznmd)

    Thank you!

    • This reply was modified 5 months, 3 weeks ago by marioznmd.
    Plugin Support Jarryd Long

    (@jarryd-long)

    My pleasure, feel free to reach out if there’s anything else we can assist with.

    Kind Regards,
    Jarryd
    Support Manager at Paid Memberships Pro

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.