LLMS_Abstract_Generator_Posts::format_date( string $raw_date = null )

Ensure raw dates are correctly formatted to create a post date


Description Description

Falls back to current date if no date is supplied.


Top ↑

Parameters Parameters

$raw_date

(string) (Optional) Raw date from raw object.

Default value: null


Top ↑

Return Return

(string)


Top ↑

Source Source

File: includes/abstracts/llms-abstract-generator-posts.php

			 *  @since 4.7.0
			 *
			 * @param int   $author_id WP_User ID.
			 * @param array $data      User creation data passed to `wp_insert_user()`.
			 * @param array $raw       Original raw author data.
			 */
			do_action( 'llms_generator_new_user', $author_id, $data, $raw );
		}



Top ↑

Changelog Changelog

Changelog
Version Description
4.7.0 Use llms_current_time() in favor of current_time().
3.30.2 Made publicly accessible.
3.3.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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