• Resolved dfwpress

    (@dfwpress)


    Hello,

    I want to use filter Disable registrations using Social Login.
    Please do you have any solution to get user friendly output message without Fatal error:, error file path and line number. I would like that only be shown notice: Registrations using Social Login have been disabled.

    Thank you

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter dfwpress

    (@dfwpress)

    I am not a coding expert but I have replaced trigger_error ('Registrations using Social Login have been disabled', E_USER_ERROR); with `echo ‘Registrations using Social Login have been disabled’;
    die();`.
    This seems to be what I was looking for.

    Hello,

    I think the easiest solution would be to:

    1) Create a new page explaining that registration is disabled.
    https://codex.wordpress.org/Pages

    2) Write down the public link to this page.

    3) Then you replace this:
    trigger_error (…);

    By this (replace $url by the link to the page):
    wp_redirect( $url ); exit;

    The user will be redirected to a page instead of our error or a single message.

    Best regards,

    Benoit

    Thread Starter dfwpress

    (@dfwpress)

    OK
    Thank you

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Filter:Disable registrations using Social Login’ is closed to new replies.