Leave a Reply

2 comments

  1. you can simple make a check if user is logged in and show him the reply button, if is not you can show him a custom link to your login file.

    something like this:

    <?php if ( !is_user_logged_in() ) : ?>
        <a href="<?php bloginfo('url'); ?>/login"><?php _e('Reply', 'artdev'); ?></a>
    <?php else : ?>
        <?php comment_reply_link() ?>
    <?php endif ?>  
    
  2. I am not sure if you copy/pasted wrong line or misunderstanding how to add filter. apply_filters() runs actual hook, to attach your function to the hook you use add_filter().

    It should be something like that:

    add_filter('login_url','custom_login_url');
    
    function custom_login_url($login_url) {
    
        return 'your url';
    }