Idea for cheatsheet docs

It’d be awesome if the docs pages could show the code itself for functions, like Wordpress does.

Show the code for it, in which file it might be found and the line number


I’ve thought about something like this as well, but I wouldn’t give any line numbers, because that is hard to keep up to date.

Also these two meta elements are useful
WP Meta

WP got the lines in it, but yeah, it might be a pain in the arse to keep up to date, so that’s probably not needed
WP Source

I’ve been working with WP too much lately :disappointed_relieved:

So it seems… (and some more chars)

Yuuup, I started working professionally in an agency in November, and unfortunately, a lot of their sites are based on WP, so I gotta work with WP :unamused:

Though I’m trying to get new projects over on Kirby, just got to convince the consultants and project managers.


Just some reading about linking directly to a function:

I created a feature request GitHub issue. But don’t expect this to happen in the near future :wink:, but maybe we can start when we add new features.

1 Like

Sounds good! Start somewhere and hope that the files will never be renamed or moved.