Can I customize [ms-membership-signup]

Hi. We're wanting to add text next to username to suggest users use their email address as their username. Can we customize the form to add this?

  • Rupok

    Hi Robert,

    Thanks for asking. You can easily do this by creating a MU Plugin. For creating a MU Plugin, create a folder named "mu-plugins" inside your "wp-content" folder. Then inside that "mu-plugins" folder, create a file with any name and with a .php extension. Now paste the code inside that file and save.

    add_action( 'wp_footer', 'add_suggestion_in_register_page' );
    function add_suggestion_in_register_page() {
        <script type="text/javascript">
          jQuery(document).ready(function() {
    		jQuery('.wpmui-label-username').after('<span><br>[Please Use Your Email as Username]</span>');

    Please replace "[Please Use Your Email as Username]" with your desired suggestion text.

    For getting more idea on mu plugins, you can go through this article:

    I believe, this will help. Please let us know if you have any confusion or any further query. We will be glad to help.

    Have a nice day. Cheers!

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.