Where these arguments are defined?

You should look on ow WordPress Plugin Api works. When you add a filter, the function that hook into that filter receive the argument from the function: apply_filters. This function pass at least one argument, but can pass more, and always aspect a value returned. So if you can write add_filter( ‘walker_nav_menu_start_el’, ‘description_in_nav_el’, 10, 4 … Read more

Add more levels to menu

Go to wp-content/themes/templatename/ and then in header.php go to his line ‘depth’ => apply_filters( ‘yiw_main_menu_depth’, 3), Just change the number and done!

Replace Menu Item with Logged in username

you can do it with jQuery, but you’ll need to find that menu item’s class or ID. Here’s an example: <?php global $display_name; get_currentuserinfo(); ?> <script> jQuery(document).ready(function($) { $(‘.your-class a’).text(‘<?php echo $display_name;?>’); }); </script>

How to output the menue structured for tabbed navigation?

What a pitty that nobody responded. I had a hard way checking the walker class first before I found out that it’ll be much easier with wp_get_nav_menu_items() This is what I came up with. Not perfect but it works (only two levels which is enought for my page). $menu_name=”primary”; if ( ( $locations = get_nav_menu_locations() … Read more

Load Pages Menu in single.php

Yes you can. <?php $args = array( ‘theme_location’ => ‘primary’, //change this value with coresponding menu area ‘menu_id’ => ‘main-menu’, //change this value with wanted menu ); wp_nav_menu($args); ?> menu_id is the name of menu created in WP admin>Menus. I create menu with name “Main menu” so I put main-menu there. That menu is connected … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)