Filter
rpress_pickup_time_string
On this page
Filters the pickup time label in the service popup and the pickup template.
Applied to the text shown beside the pickup time selector. The date and time popup uses it for the select-a-time label, and the pickup template uses it for its Pickup time label. The pickup template escapes the result with esc_html().
Parameters#
| Parameter | Type | Description |
|---|---|---|
$label | string | Default label text for the pickup time field. |
Return value#
string. The label to show.
Example#
add_filter( 'rpress_pickup_time_string', 'my_pickup_time_label' );
function my_pickup_time_label( $label ) {
return __( 'Collection time', 'my-textdomain' );
}
Notes#
The default text differs between the popup and the pickup template, so the callback sees a different input in each.
Source#
Applied in:
templates/rpress-datetime-popup.php(line 139)templates/rpress-pickup.php(line 84)
See also#
Was this page helpful?
