Naibabiji usesLightning Bo's Paid Reading Plugin. By default, if you have already purchased a paid article and visit the site again, you will be prompted to log in. However, after logging in, you will enter the user center and not be redirected to the article page you were reading. Therefore, we need to modify the plugin to redirect to the currently reading page after login.
<a href="<?php echo wp_login_url( get_permalink() ); ?>" title="Login">Login</a>
By replacing the current login code with the code above, you can achieve a redirect to the current page after login.
Official reference: https://developer.wordpress.org/reference/functions/wp_redirect/

Comments are closed
The comment function for this article is closed. If you have any questions, please feel free to contact us through other channels.