alleyinteractive / alleyinteractive/wp-liveblog

Add Links for Creating and Editing Liveblog Entries

Offen
#9 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
enhancement gutenberg php typescript
Vorherrschende Sprache
PHP
Sterne
0
Forks
0
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

### Description

- On the front end, for a logged in user with the `edit_posts` capability, a button should appear at the top of the liveblog entries Gutenberg block, above the list of liveblog entries, which allows an author or editor to create a new liveblog entry.
- When this button is clicked, a new tab should open to the new posts page on the WordPress back end. This destination should be the same as going to Liveblog Entries > Add New.
- Additionally, when adding a new entry using the button on the front-end, the ID of the parent Liveblog post should be passed as part of the URL, and should be used to pre-populate the value of the `wp_liveblog_parent` meta field on load so that the author doesn't have to remember to set it manually.
- For any liveblog entries that the currently logged in user has the ability to edit (governed by whether the user can edit only their own posts or also others' posts) an Edit link should appear above the post (aligned right). When clicked, the user should be taken to the edit view for the liveblog entry on the back end in a new tab.
- This edit link should be injected before the template for a liveblog entry item is loaded so that the edit link functionality does not need to live inside of the entry template.

### Use Case

As an author or editor, I want to have shortcuts to easily create or edit liveblog entries from a liveblog post.

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.