Closed ravitelecom closed 5 years ago
Pardon me. I'm not completely clear about your query. What I understood is:
I don't know how your custom registration and login page is built. If it's built correctly, you should redirect users from the default WP login and registration form using respectively the login_url
and the register_url
filter hooks. If it's already done, by clicking the login and registration link it will redirect user to your custom made login and registration page.
Additionally, have you tried the :b: beta feature: Embedded Login? You can enable NanoSupport's embedded login feature from the plugin's Settings page.
When the user is logged in, the ticket submission form won't ask for login/registration; it will simply add ticket on behalf of the logged in user.
Hope, it answers your queries.
Hi
Thank you so much, it really helps, besides, its a fantastic plugin. Great effort guys.
How do we use this filter hooks?
@mauwiks the WordPress Developer Resources has user contributed notes below each of the content page. Otherwise you can google for it. It's by WordPress Core. There are plenty of resources available everywhere.
Thanks. But I would really appreciate if you could give a specific keyword of the idea if possible or any link covering this concern. I'm not a developer
Could we at least remove or edit the message with the login URL stated on the email template of nanosupport notification email when somebody have registered?
I only need to edit the URL and use my other custom login/register page (mysite.com/login) instead of the original one (mysite.com/wp-admin). The original login for WordPress is still available but it seems better for me that users use the other custom one.
@mauwiks Putting more that one login page for the same purpose could be bad. Use login_url
filter to redirect the current login page to the new one. You can get user-contributed note below the link on how you can implement this. And this will resolve the login link in email template issue too (inshALLAH).
Thanks!
Hi @mayeenulislam,
In what I understood about the source and the user-contributed note:
To replace the default URL of the WordPress,
Correct me if I'm wrong.
Another thing, should I copy this too? If not, what should I input in my case?
Thank you for your feedback.
@mauwiks When you are not a developer, please hire a professional to do the thing. This is not the way to implement a filter hook. The code is to place in your theme's functions.php
:
add_filter( 'login_url', 'issue_sixty_custom_login_url', 10, 3 );
function issue_sixty_custom_login_url( $login_url, $redirect, $force_reauth ){
$login_url = site_url( '/custom-login/', 'login' );
if ( ! empty( $redirect ) ) {
$login_url = add_query_arg( 'redirect_to', urlencode( $redirect ), $login_url );
}
if ( $force_reauth ) {
$login_url = add_query_arg( 'reauth', '1', $login_url );
}
return $login_url;
}
WARNING: PLEASE DON'T DO THINGS UNKNOWINGLY. IT COULD BE HARMFUL. NEVER EVER EDIT CORE CODE (either WordPress or any theme or plugin). FOR A THIRD PARTY THEME USE A CHILD THEME.
Oh, sorry @mayeenulislam
I'm new to the business and all of these stuff, the reason why I don't know any developer yet that I could trust or knows what I want to get done and even if someone could possibly do it, I don't know if I could afford to hire a professional developer. I've search a lot in google or forums but nothing could answer me in exact if they can get the job done. I'm really sorry to bother you for this. And thanks for the tip! :)
Lastly,
Am I wrong to replace the /custom-login/ (alone)? The number 2 above. I'm using the theme "Themedd" of Easy Digital Downloads by the way
@mauwiks yes you are right about point #2
.
And another note, with hash (#
) followed by a number (with no space in between, like #2
) you are actually spoiling the Github issues with unwanted/unrelated references. You can see Issue #2
that, you created a reference to this issue without knowing (I understand you din't do it deliberately :smiley:). It should be avoided. If you want to write #2
, use backticks (`) to embrace the text (screenshot: http://prntscr.com/l0pe3r).
Sorry again for that. Noted! What a shame for me
Thank you very much for the great insight everytime, and everything. More power to your team and family
Hi There
In the submit ticket page, if i click the login, it is taking me to WP login from, is it possible to use, my site registration form or if what if user signed in already?
Thanks