| 1 |
<?php |
| 2 |
/** |
| 3 |
* Product Controller interface |
| 4 |
* |
| 5 |
* @package SeQura/WC |
| 6 |
* @subpackage SeQura/WC/Controllers |
| 7 |
*/ |
| 8 |
|
| 9 |
namespace SeQura\WC\Controllers\Hooks\Product; |
| 10 |
|
| 11 |
use WP_Post; |
| 12 |
|
| 13 |
/** |
| 14 |
* Product Controller interface |
| 15 |
*/ |
| 16 |
interface Interface_Product_Controller { |
| 17 |
|
| 18 |
/** |
| 19 |
* Handle the widget shortcode callback |
| 20 |
*/ |
| 21 |
public function do_widget_shortcode( array $atts ): string; |
| 22 |
|
| 23 |
/** |
| 24 |
* Handle the cart widget shortcode callback |
| 25 |
*/ |
| 26 |
public function do_cart_widget_shortcode( array $atts ): string; |
| 27 |
|
| 28 |
/** |
| 29 |
* Handle the product listing widget shortcode callback |
| 30 |
*/ |
| 31 |
public function do_product_listing_widget_shortcode( array $atts ): string; |
| 32 |
|
| 33 |
/** |
| 34 |
* Add [sequra_widget] to product page automatically |
| 35 |
* Add [sequra_cart_widget] to cart page automatically |
| 36 |
*/ |
| 37 |
public function add_widget_shortcode_to_page(): void; |
| 38 |
|
| 39 |
/** |
| 40 |
* Add meta boxes to the product edit page |
| 41 |
*/ |
| 42 |
public function add_meta_boxes(): void; |
| 43 |
|
| 44 |
/** |
| 45 |
* Render the meta boxes |
| 46 |
*/ |
| 47 |
public function render_meta_boxes( WP_Post $post ): void; |
| 48 |
|
| 49 |
/** |
| 50 |
* Save product meta |
| 51 |
*/ |
| 52 |
public function save_product_meta( int $post_id ): void; |
| 53 |
} |
| 54 |
|