diff --git a/src/EventTickets/Actions/EnqueueFormBuilderScripts.php b/src/EventTickets/Actions/EnqueueFormBuilderScripts.php index 9c04a4be7b..62b2ffd461 100644 --- a/src/EventTickets/Actions/EnqueueFormBuilderScripts.php +++ b/src/EventTickets/Actions/EnqueueFormBuilderScripts.php @@ -31,17 +31,6 @@ public function __invoke() 'events' => $this->getEvents(), 'createEventUrl' => admin_url('edit.php?post_type=give_forms&page=give-event-tickets&new=event'), 'listEventsUrl' => admin_url('edit.php?post_type=give_forms&page=give-event-tickets'), - 'ticketsLabel' => apply_filters( - 'givewp_event_tickets_block/tickets_label', - __('Select Tickets', 'give') - ), - 'soldOutMessage' => apply_filters( - 'givewp_event_tickets_block/sold_out_message', - __( - 'Thank you for supporting our cause. Our fundraising event tickets are officially sold out. You can still contribute by making a donation.', - 'give' - ) - ), ] ); diff --git a/src/EventTickets/Fields/EventTickets.php b/src/EventTickets/Fields/EventTickets.php index 9088a965dc..be5d187767 100644 --- a/src/EventTickets/Fields/EventTickets.php +++ b/src/EventTickets/Fields/EventTickets.php @@ -80,29 +80,4 @@ public function ticketTypes(array $ticketTypes): EventTickets $this->ticketTypes = $ticketTypes; return $this; } - - /** - * @since 3.6.0 - */ - public function getTicketsLabel(): string - { - return apply_filters( - 'givewp_event_tickets_block/tickets_label', - __('Select Tickets', 'give') - ); - } - - /** - * @since 3.6.0 - */ - public function getSoldOutMessage(): string - { - return apply_filters( - 'givewp_event_tickets_block/sold_out_message', - __( - 'Thank you for supporting our cause. Our fundraising event tickets are officially sold out. You can still contribute by making a donation.', - 'give' - ) - ); - } } diff --git a/src/EventTickets/resources/blocks/EventTicketsBlock/Edit/BlockPlaceholder.tsx b/src/EventTickets/resources/blocks/EventTicketsBlock/Edit/BlockPlaceholder.tsx index db7f41e146..a7d1161308 100644 --- a/src/EventTickets/resources/blocks/EventTicketsBlock/Edit/BlockPlaceholder.tsx +++ b/src/EventTickets/resources/blocks/EventTicketsBlock/Edit/BlockPlaceholder.tsx @@ -24,7 +24,6 @@ export default function BlockPlaceholder({attributes}) { diff --git a/src/EventTickets/resources/components/EventTicketsList.tsx b/src/EventTickets/resources/components/EventTicketsList.tsx index a5b8951da9..082fbc1eed 100644 --- a/src/EventTickets/resources/components/EventTicketsList.tsx +++ b/src/EventTickets/resources/components/EventTicketsList.tsx @@ -1,9 +1,9 @@ +import {__} from '@wordpress/i18n'; import EventTicketsListItem from './EventTicketsListItem'; import {EventTicketsListProps} from './types'; export default function EventTicketsList({ ticketTypes, - ticketsLabel, currency, currencyRate, selectedTickets = [], @@ -15,7 +15,7 @@ export default function EventTicketsList({ return (
-

{ticketsLabel}

+

{__('Select tickets', 'give')}

{ticketTypes.map((ticketType) => { return ( {description && } - +
); } diff --git a/src/EventTickets/resources/templates/EventTickets/types.ts b/src/EventTickets/resources/templates/EventTickets/types.ts index 566feea41d..9ec9094e8d 100644 --- a/src/EventTickets/resources/templates/EventTickets/types.ts +++ b/src/EventTickets/resources/templates/EventTickets/types.ts @@ -3,7 +3,6 @@ import {TicketType} from '../../components/types'; export type EventTicketsListHOCProps = { name: string; ticketTypes: TicketType[]; - ticketsLabel: string; }; export interface OnSelectTicketProps {