Feat: Information Architecture for Newsletters #1678
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
All Submissions:
Changes proposed in this Pull Request:
This PR supports the main PR ( Automattic/newspack-plugin#3490 ) in order to clean up the existing Newsletters menu items when the Information Architecture (IA) project is released.
The current Newsletter menu and header can be seen in this screenshot:
My recommendation is to remove menu items: Add New, Categories and Tags. Though, this is NOT a requirement for the Information Architecture Project. The IA Wizard code in the main PR (link above) already hides these links, so nothing is required here. Mainly it's just a recommendation to make the Newsletters plugin closer to what IA looks anyway 😃
You'll also see some "Note" comments added to the docblocks for callback functions that the IA code will "replace/remove". These comments are not required, but they might be helpful for developers if they are expecting a callback to run, but the IA Wizard in the Newspack Plugin is actually removing or replacing it.
Finally, there is one "todo" in the
includes/class-newspack-newsletters-settings.php
file in theget_settings_url()
function. I haven't had the time to test that. I'd recommend that a team member who knows how the Newsletters plugin works should verify that function is working correctly when the IA Newsletters Wizard is active (see main PR link above).How to test the changes in this Pull Request:
This pull request is mainly some "recommendations" and code comments, but there is one thing to test. In order to test the "todo" for the "get_settings_url()" (see paragraph above), please do the following:
Other information: