PluginProbe
seQura / 3.0.0
seQura v3.0.0
4.3.4 4.3.3 4.3.2 4.3.1 trunk 2.0.0 2.0.10 2.0.11 2.0.12 2.0.5 2.0.6 2.0.7 2.0.8 2.0.9 3.0.0 3.0.2 3.0.5 3.0.6 3.0.7 3.1.0 3.1.1 3.2.0 3.2.1 3.2.2 4.0.0 All 30 releases
sequra / src / Controllers / Hooks / Product / interface-product-controller.php

interface-product-controller.php in seQura 3.0.0, at src/Controllers/Hooks/Product/interface-product-controller.php

54 lines 1.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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