# subscription/1.9.6/includes/Illuminate/Comments.php

Subscriptions for WooCommerce with Stripe Recurring Payments, version 1.9.6. 31 lines.

- Page: https://pluginprobe.com/plugins/subscription/1.9.6/code/includes/Illuminate/Comments.php
- Raw: https://pluginprobe.com/plugins/subscription/1.9.6/raw/includes/Illuminate/Comments.php
- Modified: 2025-04-24T09:50:04+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/subscription/1.9.6/code/includes/Illuminate/Comments.php#L10-L20`.

```php
<?php

namespace SpringDevs\Subscription\Illuminate;

/**
 * Class Comments
 *
 * @package SpringDevs\Subscription\Illuminate
 */
class Comments {

	/**
	 * Initialize the class.
	 */
	public function __construct() {
		add_action( 'admin_init', array( $this, 'remove_comments_metabox' ) );
	}

	/**
	 * Remove Comments related metaboxes from `subscrpt_order` post.
	 *
	 * @return void
	 */
	public function remove_comments_metabox() {
		remove_meta_box( 'commentsdiv', 'subscrpt_order', 'normal' );
		remove_meta_box( 'commentstatusdiv', 'subscrpt_order', 'side' );
		remove_meta_box( 'commentstatusdiv', 'subscrpt_order', 'normal' );
		remove_meta_box( 'commentstatusdiv', 'subscrpt_order', 'normal' );
	}
}

```
