before_last_bar


before_last_bar ( $text )

Parameters:
  • (string) text A pipe-delimited string.
Returns:
  • (string) Either $text or everything before the last pipe.
Defined at:

Description

Removes last item on a pipe-delimited string.Meant for removing the last item in a string, such as 'Role name|User role'. The original string will be returned if no pipe '|' characters are found in the string.

Related Functions

block_core_list_render, timer_start, block_template_part, force_ssl_admin, the_author_lastname

Top Google Results

User discussions

wpseek mobile