• Resolved asky09

    (@asky09)


    My customers should first create an account in order to be able to place an ad.
    So far they can created an account in wordpress, but I want that they create an account with WP-Members.
    How can I change this? ??

Viewing 1 replies (of 1 total)
  • Thread Starter asky09

    (@asky09)

    add_filter( ‘register_url’, ‘my_register_url’ );
    function my_register_url( $url ) {
    if( is_admin() ) {
    return $url;
    }
    return “https://link/to/your/registration/url/”;
    }
    add_filter( ‘login_url’, ‘my_login_url’, 10, 2 );
    function my_login_url( $url, $redirect = null ) {
    if( is_admin() ) {
    return $url;
    }
    $r = “”;
    if( $redirect ) {
    $r = “?redirect_to=”.esc_attr($redirect);
    }
    return “https://link/to your/login/url/”.$r;
    }

Viewing 1 replies (of 1 total)
  • The topic ‘New add only with an account’ is closed to new replies.