Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updated filter to fire on any menu name in that dont-miss location #1284

Merged
merged 3 commits into from
Sep 1, 2016

Conversation

rclations
Copy link

Fixes #1083

This PR adds a function that fires on the wp_nav_menu_objects hook, checks if we're building the dont-miss location's menu, and then fires the existing wp_nav_menu_{$menu->slug}_items filter call, using the dynamically selected menu slug.

I'm not in love with this solution, but it's very functional and I think can solve the current issue in #1083 until we're able to loop back and rethink this on a larger scale.

@aschweigert aschweigert merged commit 6e659a5 into WPBuddy:develop Sep 1, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants