| 1 |
<?php |
| 2 |
|
| 3 |
/** |
| 4 |
* Main ProductDescription class. |
| 5 |
* |
| 6 |
* @package RadiusTheme\SB |
| 7 |
*/ |
| 8 |
|
| 9 |
namespace RadiusTheme\SB\Controllers\ThemesSupport\Twentytwentythree; |
| 10 |
|
| 11 |
// Do not allow directly accessing this file. |
| 12 |
if ( ! defined( 'ABSPATH' ) ) { |
| 13 |
exit( 'This script cannot be accessed directly.' ); |
| 14 |
} |
| 15 |
|
| 16 |
/** |
| 17 |
* Product Description class |
| 18 |
*/ |
| 19 |
class WidgetsSupport { |
| 20 |
|
| 21 |
/** |
| 22 |
* The single instance of the class. |
| 23 |
* |
| 24 |
* @var object |
| 25 |
*/ |
| 26 |
protected static $instance = null; |
| 27 |
|
| 28 |
/** |
| 29 |
* The single instance of the class. |
| 30 |
* |
| 31 |
* @var object |
| 32 |
*/ |
| 33 |
private $widgets; |
| 34 |
|
| 35 |
/** |
| 36 |
* Construct function |
| 37 |
*/ |
| 38 |
private function __construct() {} |
| 39 |
/** |
| 40 |
* Get class instance. |
| 41 |
* |
| 42 |
* @return object Instance. |
| 43 |
*/ |
| 44 |
public static function instance( $widgets ) { |
| 45 |
if ( ! self::$instance ) { |
| 46 |
self::$instance = new self(); |
| 47 |
} |
| 48 |
self::$instance->widgets = $widgets; |
| 49 |
return self::$instance; |
| 50 |
} |
| 51 |
|
| 52 |
/** |
| 53 |
* @return void |
| 54 |
*/ |
| 55 |
public function render_rtsb_order_notes() { |
| 56 |
remove_action( 'woocommerce_checkout_before_order_review_heading', array( \WC_Twenty_Twenty_Three::class, 'before_order_review' ) ); |
| 57 |
remove_action( 'woocommerce_checkout_after_order_review', array( \WC_Twenty_Twenty_Three::class, 'after_order_review' ) ); |
| 58 |
} |
| 59 |
|
| 60 |
} |
| 61 |
|
| 62 |
// woocommerce_pagination_args |