• Resolved developer2210

    (@developer2210)


    Hi,

    I am trying to delete account functionality within buddypress account. I have used shortcode within the buddypress account page with the help of custom function code.
    I see that shortcode is working individually in the website but it is not working with do shortcode code in function.php

    Can you please help me that how can I fix this?
    FYI- Before updating the plugins its working fine but after updating the plugin its not working. Some another developer updated the plugin. I have checked with Version 1.5.4.1 and version 1.5.5 Both are not working now.

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Sanjeev Aryal

    (@sanzeeb3)

    @developer2210 – Thanks for reaching out. What happens when you’re using shorcode with do_shortcode()? Do you see a blank content or shortcode itself? Can you share the custom code snippet you’ve used?

    Do you remember what the plugin version was before updating to 1.5.5?

    Thread Starter developer2210

    (@developer2210)

    Hi,
    Thanks for looking into this.

    Here is my code snippet:
    function denBuddypressTabForDeleteAccounts()
    {
    add_action( ‘bp_template_content’, ‘returnDeleteAccountHtml’ );
    bp_core_load_template( apply_filters( ‘bp_core_template_plugin’, ‘members/single/settings/delete-account’ ) );
    }
    function returnDeleteAccountHtml(){

    echo do_shortcode(‘[wp_frontend_delete_account]’);
    }

    It shows my form to delete acount but when I enter the password to confirm account deletion then it is doing nothing.
    Screenshot: https://prnt.sc/1hiz8wv

    I have no idea what plugin version it was exactly. But it may be Version 1.5.4.1 Not sure for this. I have used both.

    Please check for this and help me to fix it.

    • This reply was modified 3 years, 4 months ago by developer2210.
    Plugin Author Sanjeev Aryal

    (@sanzeeb3)

    @developer2210 – Thanks for the details! The issue here is that the assets required for WP Frontend Delete Account aren’t loading. The plugin attempts to load assets conditionally only on the pages where the shortcode is used. But it can’t detect the page you’re adding the shortcode on.

    You can check the “Load assets globally” option in the settings: https://d.pr/BA1zk1. This will likely fix the issue. I’ll look forward to supporting BuddyPress natively like WooCommerce in the future.

    I hope this helps!

    Thread Starter developer2210

    (@developer2210)

    Its working now. Thanks for your support.

    Plugin Author Sanjeev Aryal

    (@sanzeeb3)

    @developer2210 – hey, BuddyPress seems to offer Delete Account option by default in the profile. Do you even need this plugin?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘WP Front End Delete account plugin shortcode not working in buddypress account’ is closed to new replies.