Browse: Home / Hooks /

learndash_date_time_formats

apply_filters( 'learndash_date_time_formats',  string $format )

Filters LearnDash date and time format.


Description #


Parameters #

$format

(string) Format to display the date.


Source #

File: includes/ld-misc-functions.php


Examples #

Note: Extended code example below not guaranteed, you may need to consult with a developer

 <?php
/**
 * Example usage for learndash_date_time_formats filter.
 */
add_filter(
	'learndash_date_time_formats',
	function( $current_format = '' ) {
		// Set $current format to ANY combination of date/time format variables desired.
		$current_format = 'l, F j, Y H:i';

		// Always return the format variable.
		return $current_format;
	}
);