Core Function
View Source on Trac ↗ sanitize_bookmark()
sanitize_bookmark( mixed $bookmark, mixed $context = 'display' ) Sanitizes all bookmark fields.
Parameters 1 required
| Name / Type | Description |
|---|---|
| (stdClass | | array) $bookmark Bookmark row. Required |
| $context string | Optional. How to filter the fields. Default 'display'. |
Return Value
((stdClass)
| array) Same type as $bookmark but with fields sanitized.
Function Information
Since Version
2.3.0
Source File
wp-includes/bookmark.php
Advertisement