Shiftee Basic

Shiftee Basic Actions

Shiftee Basic has several actions to help you customize the plugin to meet your needs.

shiftee_save_additional_user_profile_fields( $user_id )

Description: Runs when user meta is saved. Used to sanitize and save user meta data.
Parameters:

  • $user_id: the ID of the user whose data is being saved

Source file: class-shiftee-basic-admin.php


shiftee_notify_employee_about_shift( $post_id, $employeeid )

Description: When a shift is created or updated, and the admin has selected the option to notify the staff member about the shift, this action is currently used to send the email notification.
Parameters:

  • $post_id: the ID of the shift being saved
  • $employeeid: the ID of the staff member who will be notified

Source file: class-shiftee-basic-admin.php


shiftee_extra_shift_fields( $metabox )

Description: Adds more fields to the “shift details” metabox using the WP Alchemy metabox class
Parameters:

  • $metabox: the current meta box object

Source file: metabox-shift.php


shiftee_additional_user_profile_fields( $user )

Description: Add more HTML or user profile fields to the [employee_profile] shortcode
Parameters:

  • $user: the current user

Source file: user-profile.php


shiftee_clock_in_action()

Description: Runs when a staff member clocks in
Source file: class-shiftee-basic-public.php


shiftee_clock_out_action( $shift )

Description: Runs when a staff member clocks out
Parameters:

  • $shift: the ID of the shift

Source file: class-shiftee-basic-public.php


shiftee_save_employee_note_action( $shift, $note )

Description: Runs when a staff member saves a note to a shift
Parameters:

  • $shift: the ID of the shift
  • $note: the text of the note

Source file: class-shiftee-basic-public.php


shiftee_add_extra_work_action( $shift, $user )

Description: Runs when a staff member fills out the “extra work” form in the [extra_work] shortcode
Parameters:

  • $shift: the ID of the shift created by the form
  • $user: the ID of the staff member

Source file: class-shiftee-basic-public.php


shiftee_add_expense_action()

Description: Runs when a staff member fills out the “record expense” form in the [record_expense] shortcode
Source file: class-shiftee-basic-public.php