WordPress.org

Ready to get started?Download WordPress

Forums

WP User Frontend
How to change login link on add post page ? (2 posts)

  1. Anand
    Member
    Posted 1 year ago #

    i have my own login page in frontend for users to log-in.

    But add post page show a login link to non-logged in users which takes them to wp-login.php

    Is there any way to change that url so that it will take users to my own custom login page.

    http://wordpress.org/extend/plugins/wp-user-frontend/

  2. professor99
    Member
    Posted 1 year ago #

    You will have to change the following code in the file wpuf-add-post.php.

    function shortcode( $atts ) {
    .....
            if ( is_user_logged_in() ) {
                $this->post_form( $post_type );
            } else {
                printf( __( "This page is restricted. Please %s to view this page.", 'wpuf' ), wp_loginout( get_permalink(), false ) );
            }
    .....
    
        }

    cheers
    The Professor

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.