Thanks for reaching out @cubatrytest. As long as you’re comfortable with some basic PHP coding, you can use the templating system built into the plugin. This system allows you to modify parts of the plugin, such as the form, while still allowing you to update it when we roll out new releases. Here are the basic steps you would need to take:
- Copy the plugin’s file at \wp-content\plugins\wired-impact-volunteer-management\templates\opp-single-form.php to a folder within the current theme called “wivm”.
- Modify it so the form is only displayed when the
is_user_logged_in()
function returns false.
- Add an
else
statement that shows a button when the user is logged in, or avoid the else
statement and simply add the button directly to each volunteer opportunity’s content within the admin.
Hopefully that gets you where you need to go. If you have any questions don’t hesitate to reach out.
Thank you for the response, I might need some help on PHP coding for the else statement, and I couldn’t find the ‘wivm’ folder inside my current theme folder, or do I have to create one?
Sorry if I wasn’t clear @cubatrytest. You’ll need to create a folder within your current theme called wivm
.
We can’t provide custom coding support for plugin users, but I’m happy to answer questions as you work through it. Good luck as you hop in there.