Qwwqe

get_fundraiser_expiration_date

This helper function returns the expiration date for a given fundraiser post.

Usage


get_fundraiser_expiration_date( int $fundID );

Parameters


$fundID

(int)(Required) Custom post type: fundraiser post ID

Return


Fundraiser expiration date formatted as yyyy-mm-dd:00:00. Same as: WordPress function: get_post_meta( $fundID, ‘_expires_on’, true );

Examples


Example #1

$expires_on = get_fundraiser_expiration_date( $fundID );
echo $expires_on; // 2022-08-31:00:00