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
Return Return
(string)
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 ) ) );
}
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
| Version | Description |
|---|---|
| 3.8.0 | Introduced. |