• Resolved yourbudweiser

    (@yourbudweiser)


    By default, creating a new user creates a new private page with the slug private-page/displayname. If a display name does not exist, the username is used so some of my user’s private page slug contain the username and some contain the display name.

    I would like to the slug to always be private-page/username. Is this possible?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support alexandrubodea

    (@alexandrubodea)

    Hi @yourbudweiser,

    At the moment this is not possible, but we will add a filter in a future update to the plugin which can be utilized for for what you’re trying to achieve.

    Best regards,

    Thread Starter yourbudweiser

    (@yourbudweiser)

    The private page slug should be consistent.

    A simple change to the plugin code from

    $display_name = ($user->display_name) ? ($user->display_name) : ($user->user_login);

    to

    $display_name = ($user->user_login) ? ($user->user_login) : ($user->display_name);

    will set the private page slug to use the username and since they are always unique, we’ll never use the display_name.

    Surely this can be done without modifying the plugin code?

    I know that the custom code will be overwritten if/when the plugin is updated but this is necessary for my requirements. I’ll have to disable updates for the plugin.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.