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

Custom action hook parameters are not the same as in Nav Menu Roles #94

Closed
helgatheviking opened this issue Dec 8, 2016 · 1 comment

Comments

@helgatheviking
Copy link

First, I love the preg_replace() idea! And two, thanks for adding the wp_nav_menu_item_custom_fields action hook so Nav Menu Roles and Menu Icons can be compatible.

However, I've found that your action hook's params aren't the same as mine.

You have:
do_action( 'wp_nav_menu_item_custom_fields', $id, $item, $depth, $args );

While I have:
do_action( 'wp_nav_menu_item_custom_fields', $item_id, $item, $depth, $args );

In your case $id will always be zero. I don't know if this has a lot of impact since it's only used by us menu plugin authors, but I thought I'd point it out.

@kucrut
Copy link
Contributor

kucrut commented Feb 4, 2017

Sorry it took me so long to get to this. I've moved the issue to Menu Item Custom Fields.

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

No branches or pull requests

2 participants