LLMS_Abstract_Notification_View::get_date( string $date = 'created', string $format = null )

Retrieve a formatted date


Parameters Parameters

$date

(string) (Optional) Created or updated.

Default value: 'created'

$format

(string) (Optional) Valid PHP date format, defaults to WP date format options.

Default value: null


Top ↑

Return Return

(string)


Top ↑

Source Source

File: includes/abstracts/llms.abstract.notification.view.php

	public function get_date( $date = 'created', $format = null ) {

		if ( ! $format ) {
			$format = get_option( 'date_format' ) . ' ' . get_option( 'time_format' );
		}

		return date_i18n( $format, strtotime( $this->notification->get( $date ) ) );

	}


Top ↑

Changelog Changelog

Changelog
Version Description
3.8.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.