Skip to content

wp_lib_fine_created

Kit edited this page Jan 8, 2016 · 1 revision

###Description

This action hook allows developers to run code after a Fine has been created for the late return of an Item.

###Context

This hook is called after the WordPress Post for the Fine has been created and the post meta associated with it (Item ID/Fine amount/etc.) has been set. This action is called before the Item has been fully returned, meaning some Item/Loan post meta will still exist as if the Loan were still active.

###Parameters

$fine_id
Post ID of Fine that has just been created

$item_id
Post ID of Item that is being returned

$member_id
Post ID of Member who returned the Item late

$loan
Instance of Loan class WP_Lib_Loan. Contains Loan's Post ID

Clone this wiki locally