Viewing 2 posts - 1 through 2 (of 2 total)
  • #89992
    icecast
    Member
    Post count: 182

    Re conflict with Kathy Darling’s Nav Menu Roles plugin, she writes:

    Shazdeh, the author of Menu Item Visibility Control plugin had the [genius idea](http://shazdeh.me/2014/06/25/custom-fields-nav-menu-items/) to not wait for a core hook and simply add the hook ourselves. If all plugin and theme authors use the same hook, we can make our plugins play together.

    Therefore, as of version 1.6 I am modifying my admin walker to *only* adding the following line (right after the description input):

    
    <?php 
    // This is the added section
    do_action( 'wp_nav_menu_item_custom_fields', $item_id, $item, $depth, $args );
    // end added section 
    ?>
    

    I am then adding my fields to this hook. Ask your conflicting plugin/theme’s author to do the same and our plugins should become compatible.

    #90468
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    Thanks for the request – got this on my list for v1.2, definitely a good thing to do!

    – Ed

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register