Buscar

add_filter(‘wp_nav_menu_items’,’add_search_box_to_menu’, 10, 2);
function add_search_box_to_menu( $items, $args ) {
if( $args->theme_location == ‘primary’ )
return $items.”<li class=’menu-header-search’><form action=’http://exemplo.com/&#8217; id=’searchform’ method=’get’><input type=’text’ name=’s’ id=’s’ placeholder=’Buscar’></form></li>”;

return $items;
}