Skip to content

Commit

Permalink
Merge branch 'main' into ns/91-auction-style
Browse files Browse the repository at this point in the history
  • Loading branch information
nathan-schmidt-viget authored Jan 2, 2024
2 parents 0a051b6 + 0c8001d commit 5c4b5be
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
6 changes: 6 additions & 0 deletions client-mu-plugins/goodbids/src/classes/Auctions/Auctions.php
Original file line number Diff line number Diff line change
Expand Up @@ -950,6 +950,12 @@ function ( string $html, int $post_id ) {
return $html;
}

// If the auction has a featured image
if ( has_post_thumbnail( $post_id ) ) {
return $html;
}

// Default to the WooCommerce featured image or WooCommerce default image
$reward_id = $this->get_reward_product_id( $post_id );
$product = wc_get_product( $reward_id );

Expand Down
7 changes: 7 additions & 0 deletions docs/api-key.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# API Key

Auctioneer and WordPress need a shared API key to communicated securely with each other.

This API key needs to be generated, added to both WordPress and Node via the WP VIP CLI, and then the apps need to be redeployed.

Review the [API Key documentation](https://github.com/Good-Bids/goodbids-node/blob/main/docs/api-key.md) in the `goodbids-node` repo for more information.

0 comments on commit 5c4b5be

Please sign in to comment.