LLMS_Post_Model::get_date_format()
Retrieve the default date format for the post model
Description Description
This can be overridden by child classes if the post type requires a different default date format.
If no format is supplied by the child class, the default WP date & time formats available via General Settings will be combined and used.
Return Return
(string)
Source Source
File: includes/abstracts/abstract.llms.post.model.php
protected function get_date_format() { $format = get_option( 'date_format' ) . ' ' . get_option( 'time_format' ); /** * Filters the date format * * The dynamic portion of this hook, `$this->model_post_type`, refers to the model's post type. For example "course", * "lesson", "membership", etc... * * @since 3.0.0 * * @param string $format The date format. */ return apply_filters( "llms_get_{$this->model_post_type}_date_format", $format ); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |