• Resolved Marty

    (@mrthrust)


    Hey Guys

    just wondering if theres an action/filter I can hook into, so I can add custom content to the top of our account page?

    I’ve obviously went & added my content to: “/plugins/wp-user-frontend/templates/account.php”
    but with so many updates happening, each time I update, I need to edit core files again.

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Marty

    (@mrthrust)

    Think I got it… copied the file “/plugins/wp-user-frontend/templates/account.php”
    to “/themes/my-theme/wpuf/account.php” were any changes I make wont be updated after plugin updates are applied!… also allows me to add my own action hook: do_action(‘wpuf_custom_account_content_before’)

    then in my theme function file I can call & hook into that new action!

    Thanks!

    Plugin Support Saiful Islam

    (@saifislam01)

    Hi @mrthrust,

    Thank you for reaching out with your query.

    To add custom content to the top of your account page in the WP User Registration Plugin without modifying core files, you can utilize WordPress hooks and filters. Directly editing plugin files is not recommended as updates will override your changes. Instead, you can use the following approach:

    The WP User Registration Plugin likely provides hooks you can use to add content. If the plugin does not offer a specific hook, you can add your own custom action hook in a child theme or a custom plugin.

    By using this method, you can safely add custom content without worrying about losing changes during plugin updates.

    Hope this will help. If you have any further questions or need additional assistance, feel free to ask.

    Best regards,

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Adding Content before Account page loads’ is closed to new replies.