Skip to content

Commit

Permalink
Add autogenerated docs
Browse files Browse the repository at this point in the history
  • Loading branch information
earnjam committed Feb 15, 2019
1 parent 40fe2f6 commit 85fa2b2
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions docs/designers-developers/developers/data/data-core-editor.md
Original file line number Diff line number Diff line change
Expand Up @@ -1308,6 +1308,21 @@ Returns the permalink for the post.

The permalink, or null if the post is not viewable.

### getEditedPostSlug

Returns the slug for the post being edited, preferring a manually edited
value if one exists. It falls back to an auto-generated value returned from
an autosave, then to a sanitized version of the current post title, and
finally to the post ID.

*Parameters*

* state: Editor state.

*Returns*

The current slug to be displayed in the editor

### getPermalinkParts

Returns the permalink for a post, split into it's three parts: the prefix,
Expand Down

0 comments on commit 85fa2b2

Please sign in to comment.