Class Class_Bkap_Product_Resource
Class_Bkap_Product_Resource class.
Author: Tyche Softwares
Since: 4.6.0
Class: Class_Bkap_Product_Resource
Located at includes/class-bkap-product-resource.php
Methods summary
public
|
|
public
string
|
#
woocommerce_product_add_to_cart_url_callback( string $link, Object $product )
This function is to change the href link of Add to cart button on Shop page |
public
string
|
#
woocommerce_loop_add_to_cart_link_callback( string $link, Object $product, $args )
This function is to change the href link of Add to cart button on Shop page |
public static
array
|
#
bkap_resource_add_to_cart_validation_callback( array $post_data, integer $post_id, array $booking_settings, string $quantity_check_pass, array $resource_validation_result )
This function is to validate the availability of resource on add to cart button action |
public static
|
#
bkap_resource_css_file( )
This function is to dequeue CSS of WooCommerce Bookings to overcome conflict Later this will be removed with appropriate solution |
public static
array
|
#
bkap_locked_dates_for_dateandtime_callback( integer $resource_id, integer $product_id, array $booking_settings, array $resource_lockout_data )
This function is used to alter the lockout date for date and time product |
public static
|
#
bkap_add_additional_resource_data( $additional_data, $booking_settings, $product_id )
This function is used to add availability and quantity data in the additional data array being passed in the localized script. resource field. |
public static
|
#
bkap_front_end_resource_field( integer $product_id )
This function is used to create resource field. in the Booking form. |
public static
|
|
public static
|
#
bkap_add_resource_section_callback( integer $product_id )
This function is used to add resource option on Booking meta box header in Add/Edit Product page. |
public static
array
|
#
save_product_settings( array $booking_settings, integer $product_id )
This function is used to save the resources for added for the product. |
public
|
|
public static
|
|
public static
|
|
public static
|
|
public static
|
#
bkap_resource_settings( integer $product_id )
Loads the content in the Resources tab in Add/Edit product page. |
public static
array
|
|
public static
array
|
|
public static
array
|
|
public static
array
|
|
public static
string
|
|
public static
string
|
|
public static
string
|
|
public static
boolean
|
#
bkap_resource_status( integer $product_id )
Get status of resource whether the product has resource enable and any resources are added to it or not. |