Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #947281

    Hi,
    Im trying to use nav_menu_link_attributes filter to default avia(1-2-3) menus, but it doesnt work, but works with another non default-avia menus.
    Tried to debug it via print_r and nothing. I need it to change some menu attributes.

    function wpse121123_contact_menu_atts( $atts, $item, $args )
    {
        print_r($args->menu_id);
        return $atts;
    }
    add_filter( 'nav_menu_link_attributes', 'wpse121123_contact_menu_atts', 10, 3 );
    
    #947831

    Hey mdxclr,

    Can you please explain a bit more what attributes you need to change?

    Best regards,
    Victoria

Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘menu filter now working’ is closed to new replies.