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 |
end_el(string $output, object $item, int $depth)
see | \Walker_Nav_Menu::end_el() |
---|
string
Passed by reference. Used to append additional content.
object
Page data object. Not used.
int
Depth of page. Not Used.
end_lvl(string $output, int $depth)
see | \Walker_Nav_Menu::end_lvl() |
---|
string
Passed by reference. Used to append additional content.
int
Depth of page. Used for padding.
start_el(string $output, object $item, int $depth, object $args)
see | \Walker_Nav_Menu::start_el() |
---|
string
Passed by reference. Used to append additional content.
object
Menu item data object.
int
Depth of menu item. Used for padding.
object
other arguments
start_lvl(string $output, int $depth)
see | \Walker_Nav_Menu::start_lvl() |
---|
string
Passed by reference. Used to append additional content.
int
Depth of page. Used for padding.
remove_unwanted_chars(string $str) : string
string
the string to be escaped
string
the escaped string$replacements : array