They say you learn something new every day.

Archive for June, 2017

WordPress Edit Links (11/06/2017)

I haven’t done this for a while now, but I was thinking about where to store some useful nuggets I’ve come across while learning WordPress and it occured to me that that is exactly what this is for.

In WordPress, there’s a button at the bottom of articles that, if you’re logged in, gives you quick access to edit the article. It uses this function:


It’s all very, but what if you want to change what it says?

Turns out, it’s easy enough:

edit_post_link(‘New text’)

I’m impressed by how good the WordPress documentation is actually – especially since a lot of the code is horrible old php.

Tag Cloud