Action performed when a new site is initialized. swap()
has already been called.
add_action(
'goodbids_initialize_site',
function ( int $site_id ): void {
update_option( 'my_option_name', 'my_value' );
}
);
Action performed when a site has been verified. swap()
has already been called.
add_action(
'goodbids_nonprofit_verified',
function ( int $site_id ): void {
update_option( 'my_option_name', 'my_value' );
}
);
Action performed after an Auction-related order has a successful payment.
add_action(
'goodbids_order_payment_complete',
function ( int $order_id, int $auction_id ): void {
$bid_count = get_post_meta( $auction_id, '_bid_count', true );
update_post_meta( $auction_id, '_bid_count', $bid_count + 1 );
},
10,
2
);
Cron event, fired every minute.
Be EXTREMELY CAUTIOUS using this hook.
add_action(
'goodbids_auction_start_event',
function (): void {
// Are you sure you want to use this hook?
}
);
Fired when an auction starts.
add_action(
'goodbids_auction_start',
function ( int $auction_id ): void {
// Maybe update some post meta?
}
);
Fired when an auction ends.
add_action(
'goodbids_auction_close',
function ( int $auction_id ): void {
// Maybe update some post meta?
}
);