Hi Long,
I must admit that this is a very bad suggestion. You are telling me to add custom code to a plugin that you maintain and send out updates to. What happens when you push out another update? Not update our plugin or update the plugin and go back in by hand to add our custom code. Neither is a good solution.
I am happy to send over some code via a pull request but this repo is private. My BitBucket username is [email protected]
I suggest another shortcode attribute be added after line 46 in src/Shortcodes/Register.php
'hide_form' => is_user_logged_in()
And then replace is_user_logged_in()
in src/Forms/Register.php on line 6 with
$this->config['hide_form']
And in your shortcode parameters, you can have:
[mb_user_profile_register hide_form="false"]
This is only a start. Even with these changes, I do not see the form. I don't understand enough about the has_privilege
method to adjust it to show the form.
Can you all add this code and take it to the finish line?
Thanks for your help.