Small WordPress dev tasks
Hi, there. You're not logged in. So, you must be a visitor. Welcome!
What is this? You are viewing one of our supplemental "Stories." In addition to our core design curriculum, we are constantly building out additional resources. Stories are a collection of real work tasks, design history, UX explorations, and work-throughs. Stories are often off-the-cuff and less concerned with production value.
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!