function wpaesm_clock_out_notification modification
-
Love your plugin!
The admin for our employee scheduler site doesn’t want a separate email for employee notes – he wants the notes to be sent when the employee has clocked out. Therefore, I modified the function wpaesm_clock_out_notification to include the following:
$employeenotes = get_post_meta($shift_id, '_wpaesm_employeenote', true); $message .= "<p><strong>" . __( 'Notes:', 'wpaesm' ) . "</strong></p>"; foreach( $employeenotes as $note ) { if( isset( $note['notedate'] ) && isset( $note['notetext'] ) ) { $message .= "<p><strong>" . $note['notedate'] . ":</strong> " . $note['notetext'] . "</p>"; } }
[Moderator note: code fixed. Please wrap code in the backtick character or use the code button.]
This is great, until there is an update to the plug-in. Then my modification is hosed. ?? Can we either disable the auto-update of the plugin, or have the option of notes being included with the clock-out email?
Thanks for your time.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘function wpaesm_clock_out_notification modification’ is closed to new replies.