Skip to content
This repository has been archived by the owner on Oct 16, 2024. It is now read-only.

Deprioritize the PM menu item #117

Merged
merged 1 commit into from
Mar 15, 2023
Merged

Conversation

mike-day
Copy link
Contributor

This PR moves the PM menu item to sit just above appearance:

Screenshot 2023-03-15 at 11 41 23 AM


How to test

Not really needed, but you if want to see it on your local:

  1. Checkout the branch
  2. Take a gander at the menu item position

@@ -76,7 +76,7 @@ function patternmanager_adminmenu_page() {
'pattern-manager',
__NAMESPACE__ . '\pattern_manager_app',
'dashicons-text',
$position = 2,
$position = 59,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

59 is the Separator level, so the menu item appears below the separator but just above Appearance.

Copy link
Contributor

@dreamwhisper dreamwhisper left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

Screen Shot 2023-03-15 at 12 51 51 PM

@mike-day
Copy link
Contributor Author

Thanks @dreamwhisper!

@mike-day mike-day merged commit 9a0f66a into main Mar 15, 2023
@mike-day mike-day deleted the try/deprioritize-pm-menu-item branch March 15, 2023 16:54
@kienstra
Copy link
Contributor

Looks good!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants