Skip to content

Commit

Permalink
Merge pull request #878 from JordanPak/feature/635-public-event-methods
Browse files Browse the repository at this point in the history
Make `Event->get_formatted_datetime()` method public
  • Loading branch information
mauteri authored Sep 17, 2024
2 parents 9de09f9 + c6c6fc8 commit 7b597be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions includes/core/classes/class-event.php
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ public function get_datetime_end( string $format = 'D, F j, g:ia T' ): string {
*
* @throws Exception If there is an issue while formatting the datetime value.
*/
protected function get_formatted_datetime(
public function get_formatted_datetime(
string $format = 'D, F j, g:ia T',
string $which = 'start',
bool $local = true
Expand Down Expand Up @@ -611,7 +611,7 @@ protected function get_ics_calendar_download(): string {
*
* @return string The calendar event description with the event details link.
*/
protected function get_calendar_description(): string {
public function get_calendar_description(): string {
/* translators: %s: event link. */
return sprintf( __( 'For details go to %s', 'gatherpress' ), get_the_permalink( $this->event ) );
}
Expand Down

0 comments on commit 7b597be

Please sign in to comment.