EditLinks final class
Minn\Runtime\EditLinks · public/minn/src/Minn/Runtime/EditLinks.php · 99 lines
The admin addresses WordPress's link functions give for editing: a post, a term, a user and one's own profile (null or empty for someone who may not), a user's dashboard, and a post's short link; each as its filter leaves it.
Public
| static | post(mixed $post = 0, mixed $context = 'display'): mixed# | The address a post is edited at (get_edit_post_link), null for a post the user may not edit or of no known type. |
| static | term(mixed $term, mixed $taxonomy = '', mixed $objectType = ''): mixed# | The address a term is edited at (get_edit_term_link), null for one the user may not edit. |
| static | user(mixed $userId = NULL): mixed# | The address a user is edited at (get_edit_user_link): one's own profile for oneself; empty for one the user may not edit. |
| static | profile(mixed $userId = 0, mixed $scheme = 'admin'): mixed# | The address a user's profile is edited at (get_edit_profile_url), as edit_profile_url leaves it. |
| static | dashboard(mixed $userId = 0, mixed $path = '', mixed $scheme = 'admin'): mixed# | A user's dashboard address, at a path in it (get_dashboard_url), as user_dashboard_url leaves it. |
| static | shortlink(mixed $id = 0, mixed $context = 'post', mixed $allowSlugs = true): mixed# | A post's short address (wp_get_shortlink), unless pre_get_shortlink answers first: the front page's home address, a public post's ?p=, else empty; the query's post when asked for the query's. |
Internals 1
Private and protected methods: how the class does its work. Not a contract; they change whenever the code is tidied.
| private | me(): int# | The signed-in user's id. |
Nothing matches.