Preview_Data::get_post( string $args = array() )

Get Post Data for preview.


Parameters

$args

(string) (Optional) Array of preview data.

Default value: array()


Top ↑

Return

(object)


Top ↑

Source

File: src/Tickets/Emails/Admin/Preview_Data.php

	public static function get_post( $args = [] ) {
		$default = [
			'ID'             => -91,
			'post_author'    => 1,
			'post_date'      => '2023-04-17 17:06:56',
			'post_date_gmt'  => '2023-04-17 17:06:56',
			'post_title'     => __( 'Arts in the Park', 'event-tickets' ),
			'post_excerpt'   => __( 'Experience the magic of creativity in nature. Save the date and indulge your senses at "Arts in the Park"!  Join us for an enchanting day of vibrant musics and captivating... ', 'event-tickets' ),
			'post_status'    => 'publish',
			'post_permalink' => '#',
			'post_name'      => 'preview-post-91',
			'post_type'      => 'post',
			'filter'         => 'raw',
		];

		return (object) wp_parse_args( $args, $default );
	}

Top ↑

Changelog

Changelog
Version Description
5.6.0 Introduced.