gravityflow_date_format_current_step_merge_tag

The gravityflow_date_format_current_step_merge_tag filter can be used to customize the date format returned by {current_step}

Parameters

Parameter Type Definition
$date_format String
A date format string - defaults to the WordPress settings.
$current_step Gravity_Flow_Step The current step for this entry.
$property String
Modifier for the current step merge tag.

Examples

Example 1 - Return a custom date format with no time.

Returns different date formats for {current_step:schedule} and {current_step:expiration} with no time.

add_filter( 'gravityflow_date_format_current_step_merge_tag', 'sb_gravityflow_date_format_current_step_merge_tag',10,3);
function sb_gravityflow_date_format_current_step_merge_tag($date_format,$current_step,$property) {
   if($property == 'schedule') {$date_format = "m.d.y";}
   elseif($property == 'expiration') {$date_format = "j, n, Y";}   
return $date_format;
}

Placement

This code should be placed in the functions.php file of your active theme or in a custom functions plugin.