WordPress.org

Support

Support » Plugins and Hacks » [Resolved] How can I redirect log in link in the comments?

[Resolved] How can I redirect log in link in the comments?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Cole Geissinger

    @brainfestation

    Hi Balleruaille, While this will require some programming knowledge, I can provide a gist idea that can get you going in the right direction.

    You can modify the comments template in your theme and use the PHP script to add the modal login. Then you can use add_filter() to filter the URL redirect URL when a user logs in. The name of the function for the filter is ‘wpml_redirect_to’. FYI, this filter will be deprecated in the next release, but that’s a little way down the road.

    Good luck!

    Plugin Author Cole Geissinger

    @brainfestation

    For an example of how to use the filter visit my comment to a semi-related post – http://wordpress.org/support/topic/how-to-forward-to-certain-page-after-login?replies=3#post-4346361

    Hey I am also in need of help on this.

    I understand the filter and what not, I am just lost on where to add this code. I dont see anywhere in comment.php where I think this should go. Any help would be awesome, thanks.

    Great plugin by the way, I will be sure to donate.

    Plugin Author Cole Geissinger

    @brainfestation

    The code belongs anywhere in your themes functions.php

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Resolved] How can I redirect log in link in the comments?’ is closed to new replies.