Hello,
I use wpForo for personal use and have created my own customization for email notifications. With my modification, every user receives a link in the email that allows them to access the forum WITHOUT LOGGING IN and be taken DIRECTLY to the post.
I came up with this idea because our small, private club forum has many older users who have a lot of trouble logging in.
The advantage is clear: the link contains a one-time token that is time-limited and expires afterward. It is impossible to manipulate this token to log in externally. I’ve been testing this for several wpForo versions now, and my patch script reliably modifies functions.php.
This login is handled by the “Passwordless Login” Wordpress-plugin and my self-developed “Magic Login Handler” plugin. I developed this with the help of AI.
I added a custom placeholder [magic_link] that generates a login link with a token and redirects to a specific post.
Currently, I’m patching this function:
_wpforo_apply_email_shortcodes()
by inserting the following:
include_once ABSPATH . ‚wp-content/wpforo-custom/magic_login_patch.php‘;
$txt = wpforo_magic_patch($txt, $user, $postid);
My questions:
1. Is there a suitable hook or filter to modify the email content instead of patching the core?
2. Is there a recommended method for inserting custom shortcodes into wpForo email templates?
3. Is this idea something you’d be interested in implementing directly?
4. Will this feature change in future updates?
Goal: Avoid modifying core files and make the solution update-safe.
Thank you very much!