PluginProbe
Subscriptions for WooCommerce with Stripe Recurring Payments / trunk
Subscriptions for WooCommerce with Stripe Recurring Payments vtrunk
2.4.0 2.3.0 2.2.0 2.1.0 2.0.0 1.11.2 1.11.1 1.11.0 1.10.9 1.10.8 1.10.7 1.10.6 1.10.5 1.10.4 1.10.3 1.10.2 1.10.1 1.10.0 1.9.6 1.9.5 trunk 1.3.0 1.3.1 1.3.2 1.4.0 All 65 releases
subscription / includes / Illuminate / Comments.php

Comments.php in Subscriptions for WooCommerce with Stripe Recurring Payments trunk, at includes/Illuminate/Comments.php

31 lines 710 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace SpringDevs\Subscription\Illuminate;
4
5 /**
6 * Class Comments
7 *
8 * @package SpringDevs\Subscription\Illuminate
9 */
10 class Comments {
11
12 /**
13 * Initialize the class.
14 */
15 public function __construct() {
16 add_action( 'admin_init', array( $this, 'remove_comments_metabox' ) );
17 }
18
19 /**
20 * Remove Comments related metaboxes from `subscrpt_order` post.
21 *
22 * @return void
23 */
24 public function remove_comments_metabox() {
25 remove_meta_box( 'commentsdiv', 'subscrpt_order', 'normal' );
26 remove_meta_box( 'commentstatusdiv', 'subscrpt_order', 'side' );
27 remove_meta_box( 'commentstatusdiv', 'subscrpt_order', 'normal' );
28 remove_meta_box( 'commentstatusdiv', 'subscrpt_order', 'normal' );
29 }
30 }
31