یه همچین کدی لازمه
class Mega_Menu_Walker extends Walker_Nav_Menu {
public $counter = 0;
public function start_el( &$output, $item, $depth = 0, $args = array(), $id = 0 ) {
parent::start_el($output, $item, $depth , $args , $id);
if( ++$this->counter > 10 ) {
echo 'Your HTML Code';
$this->counter = 0;
}
}
}
البته این کد کامل نیست و باید روش کار بشه.