Core Function
View Source on Trac ↗ before_last_bar()
before_last_bar( mixed $text ) Removes last item on a pipe-delimited string.
Parameters 1 required
| Name / Type | Description |
|---|---|
| $text string | A pipe-delimited string. Required |
Return Value
(string)
Either $text or everything before the last pipe.
Function Information
Since Version
2.8.0
Source File
wp-includes/l10n.php
Advertisement