Skip to content

Instantly share code, notes, and snippets.

@ryantheleach
Last active Aug 29, 2015
Embed
What would you like to do?
class Walker_Nav_Menu_Append extends Walker_Nav_Menu {
var $appendage = '';
function __construct($appendage = ''){
$this->appendage = $appendage;
}
public function start_lvl(&$output, $depth){
return parent::start_lvl($output, $depth);
}
public function start_el(&$output, $item, $depth, $args){
return parent::start_el($output, $depth);
}
function end_el( &$output, $item, $depth = 0, $args = array() ) {
return parent::end_el($output,$item,$depth);
}
public function end_lvl( &$output, $depth = 0, $args = array() ) {
$retval = parent::end_lvl($output, $depth);
echo('<!--');
var_dump($output);
var_dump($depth);
var_dump($args);
echo('-->');
return $retval;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment