Skip to content

Commit 26d0590

Browse files
author
Chris Gårdenberg
committed
feat(My Profile/Bookings): Added wp-hook/filter for edu_bookings, so that external plugins/code can customize the booking list.
ref /issues/427#issuecomment-1048621038
1 parent 58b85c8 commit 26d0590

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

PLUGIN-CHECKSUM

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
bf465330e7e847ae75dd70c9f4f9cac0
1+
01c7bb09341dcda909adb5d41ca4ad6c

content/template/myPagesTemplate/bookings.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@
2727
</h2>
2828

2929
<a href="./?booking-sort=StartDate">
30-
<?php echo esc_html_x('Sort by event start date', 'frontend', 'eduadmin-booking'); ?>
30+
<?php echo esc_html_x( 'Sort by event start date', 'frontend', 'eduadmin-booking' ); ?>
3131
</a>
3232
<a href="./?booking-sort=Created">
33-
<?php echo esc_html_x('Sort by booking created', 'frontend', 'eduadmin-booking'); ?>
33+
<?php echo esc_html_x( 'Sort by booking created', 'frontend', 'eduadmin-booking' ); ?>
3434
</a>
3535
<hr />
3636
<?php
@@ -75,6 +75,8 @@
7575
break;
7676
}
7777

78+
apply_filters( 'edu_bookings', $bookings );
79+
7880
$currency = EDU()->get_option( 'eduadmin-currency', 'SEK' );
7981
$selected_price_setting = EDU()->get_option( 'eduadmin-profile-priceType', 'IncVat' );
8082

0 commit comments

Comments
 (0)