Hopefully a coding guru can help me out!
I have a function in a new theme and I want to make sure the user can create a course before displaying this icon:
How would I go about getting this icon from the code to only show up if the user can create a course?
My main reason for asking is I want to add in an entirely new button that will appear if a user can create a course and it will take them to the course creation form.
But for ease of hopefully getting an answer, just getting the existing button to only show if the user can create a course would be ideal.
Anyone care to take a look and share a bit of code so I can make this happen?