The $bookmarks array must contain bookmark objects and will be iterated over to retrieve the bookmark to be used in the output.
The output is formatted as HTML with no way to change that format. However, what is between, before, and after can be changed. The link itself will be HTML.
This function is used internally by wp_list_bookmarks() and should not be used by themes.
Внутренняя функция — эта функция рассчитана на использование самим ядром. Не рекомендуется использовать эту функцию в своем коде.
No Hooks.
Return
String. Formatted output in HTML
Usage
_walk_bookmarks( $bookmarks, $args );
$bookmarks(array) (required)
List of bookmarks to traverse.
$args(string|array)
Bookmarks arguments.
Default: ''
show_updated(int|true|false)
Whether to show the time the bookmark was last updated. Accepts 1|true or 0|false. Default: 0|false
show_description(int|true|false)
Whether to show the bookmark description. Accepts 1|true, Accepts 1|true or 0|false. Default: 0|false
show_images(int|true|false)
Whether to show the link image if available. Accepts 1|true or 0|false. Default: 1|true
show_name(int|true|false)
Whether to show link name if available. Accepts 1|true or
0|false. Default: 0|false
before(string)
The HTML or text to prepend to each bookmark. Default: <li>
after(string)
The HTML or text to append to each bookmark. Default: </li>
link_before(string)
The HTML or text to prepend to each bookmark inside the anchor tags. Default: ''
link_after(string)
The HTML or text to append to each bookmark inside the anchor tags. Default: ''
between(string)
The string for use in between the link, description, and image. Default: "\n"
show_rating(int|true|false)
Whether to show the link rating. Accepts 1|true or 0|false. Default: 0|false