mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-08-30 05:00:51 +08:00
Create stubs for WC Bookings
This commit is contained in:
parent
8b5165ddfc
commit
5adb04cb3f
1 changed files with 14 additions and 0 deletions
14
.psalm/wc-bookings.php
Normal file
14
.psalm/wc-bookings.php
Normal file
|
@ -0,0 +1,14 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* Validate and create a new booking manually.
|
||||
*
|
||||
* @version 1.10.7
|
||||
* @see WC_Booking::new_booking() for available $new_booking_data args
|
||||
* @param int $product_id you are booking
|
||||
* @param array $new_booking_data
|
||||
* @param string $status
|
||||
* @param bool $exact If false, the function will look for the next available block after your start date if the date is unavailable.
|
||||
* @return mixed WC_Booking object on success or false on fail
|
||||
*/
|
||||
function create_wc_booking( $product_id, $new_booking_data = array(), $status = 'confirmed', $exact = false ) {}
|
Loading…
Add table
Add a link
Reference in a new issue