alleyinteractive / alleyinteractive/wp-liveblog

Add Links for Creating and Editing Liveblog Entries

Aperta
#9 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
enhancement gutenberg php typescript
Lingua principale
PHP
Stelle
0
Fork
0
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

### 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.

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.