Tribe__Events__Community__Tickets__Main::tickets_price_description( string $description_string, WP_Post|int $ticket_id )
Modify the price field description if we’ve disabled price editing.
Contents
Hooked to tribe_tickets_price_description
in event-tickets/src/admin-views/editor/fieldset/price.php
.
Parameters
- $description_string
-
(string) (Required) The description string.
- $ticket_id
-
(WP_Post|int) (Required) The ticket object or its ID.
Return
(string) The new description string.
Source
File: src/Tribe/Main.php
public function tickets_price_description( $description_string, $ticket_id) { if ( $this->can_update_ticket_price( true, $ticket_id ) ) { return $description_string; } return esc_html__( 'To update the pricing for tickets that already have sales, please contact the Site Admin.', 'tribe-events-community-tickets' ); }