Small WordPress dev tasks
Introduction
It’s hard to know how the programming connects to real-world situations. We’ll be keeping some shorter examples here / maybe. Here’s one to get it started.
Conditional link to edit videos for admins
WordPress has “roles” – which means that each user can have its own level of permissions. The website creators usually have “Admin” privileges” meaning they can see and do everything – whereas – say, a guest-author could just edit their post. Derek is an “author” on CSS Tricks. But he can only really edit his post / and really only in the timeframe he’s allowed. So, in this case – we want to show a link to the Vimeo video dashboard / from the video in the lesson… for quick access. But we only want the admins to see it. Here we go!