Remove spaces and newlines from the current menu.

This is very useful if you want to style a menu with:

display: inline-block;
text-align: center;
author etessore
version 1.0.0
package classes

 Methods

(non-PHPdoc)

end_el(string $output, object $item, int $depth) 
see \Walker_Nav_Menu::end_el()

Parameters

$output

string

Passed by reference. Used to append additional content.

$item

object

Page data object. Not used.

$depth

int

Depth of page. Not Used.

(non-PHPdoc)

end_lvl(string $output, int $depth) 
see \Walker_Nav_Menu::end_lvl()

Parameters

$output

string

Passed by reference. Used to append additional content.

$depth

int

Depth of page. Used for padding.

(non-PHPdoc)

start_el(string $output, object $item, int $depth, object $args) 
see \Walker_Nav_Menu::start_el()

Parameters

$output

string

Passed by reference. Used to append additional content.

$item

object

Menu item data object.

$depth

int

Depth of menu item. Used for padding.

$args

object

other arguments

(non-PHPdoc)

start_lvl(string $output, int $depth) 
see \Walker_Nav_Menu::start_lvl()

Parameters

$output

string

Passed by reference. Used to append additional content.

$depth

int

Depth of page. Used for padding.

Removew the unwanted charactes from the given string

remove_unwanted_chars(string $str) : string

Parameters

$str

string

the string to be escaped

Returns

stringthe escaped string

 Properties

 

key valuse pair of replacements

$replacements : array