Skip to content

Commit

Permalink
Documentation updates
Browse files Browse the repository at this point in the history
  • Loading branch information
bd-viget committed Dec 18, 2023
1 parent 5ea71d8 commit 1e58cc2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
5 changes: 5 additions & 0 deletions client-mu-plugins/goodbids/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,11 @@ Returns the Auction's Goal value. If `$auction_id` is not provided, the current
`goodbids()->auctions->get_expected_high_bid( int $auction_id )`
Returns the Auction's Expected High Bid value. If `$auction_id` is not provided, the current post ID will be used.

### Bids Functions

`goodbids()->auctions->bids->get_auction_id( int $bid_product_id )`
Returns the Auction ID for the given Bid Product ID.

### ACF Block Functions

`goodbids()->acf->blocks()->get_all_blocks()`
Expand Down
7 changes: 7 additions & 0 deletions client-mu-plugins/goodbids/src/classes/Auctions/Bids.php
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,13 @@ public function get_auction_id( int $bid_product_id ): ?int {
return intval( $auction_id ) ?: null;
}

/**
* Update the Bid product price when an order is completed.
*
* @since 1.0.0
*
* @return void
*/
private function update_bid_product_on_order_complete(): void {
add_action(
'goodbids_order_payment_complete',
Expand Down

0 comments on commit 1e58cc2

Please sign in to comment.