# wp-coder/4.3/classes/Snippets/pages/comments.php

WP Coder – Insert &amp; Manage Code Snippets, version 4.3. 73 lines.

- Page: https://pluginprobe.com/plugins/wp-coder/4.3/code/classes/Snippets/pages/comments.php
- Raw: https://pluginprobe.com/plugins/wp-coder/4.3/raw/classes/Snippets/pages/comments.php
- Modified: 2025-09-10T08:14:34+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/wp-coder/4.3/code/classes/Snippets/pages/comments.php#L10-L20`.

```php
<?php

defined( 'ABSPATH' ) || exit;

?>

    <div class="wowp-snippets__header">
        <h3 class="wowp-snippets__header-title">Comments & Feedback</h3>
        <p class="wowp-snippets__header-description">Manage comments and user interaction.</p>
    </div>

<?php

$snippets = [
	'disable_comments'                 => [
		'Disable Comments',
		'Turn off comments site-wide, both frontend and admin.',
	],
	'disable_comment_from_website_url' => [
		'Disable Comment Form Website URL',
		'Remove the URL field from the comment form.',
	],

	'disable_self_pingbacks' => [
		'Disable Self Pingbacks',
		'Prevent pingbacks from your own site.',
	],

	'disable_trackbacks_pingbacks' => [
		'Disable Trackbacks & Pingbacks',
		'Turn off trackbacks and pingbacks for all future posts.',
	],

	'disable_comments_html' => [
		'Disable HTML in Comments',
		'Prevent HTML tags in comments.',
	],

];

self::create_options( $snippets ); ?>

    <div class="wowp-snippet__list">
        <div class="wowp-snippet__item">
            <div class="wowp-snippet__item-header">
                <label for="enable_limit_comment_length">Limit Comment Length</label>
                <p class="wowp-snippet__item-description">Limit the maximum number of characters in comments.</p>
            </div>
            <div class="wowp-field has-checkbox">
                <label class="switch">
					<?php self::field( 'checkbox', 'enable_limit_comment_length' ); ?>
                    <span class="slider"></span>
                </label>
            </div>
            <div class="wowp-snippet__item-expand is-hidden">
                <div class="wowp-fields__group">
                    <div class="wowp-field">
                        <label><span class="label">Max characters</span>
							<?php self::field( 'number', 'limit_comment_length', '', '300' ); ?>
                        </label>
                    </div>
                    <div class="wowp-field">
                        <label><span class="label">Message</span>
							<?php self::field( 'text', 'limit_comment_mess', '', 'Your comment is too long. Max 300 characters.' ); ?>
                        </label>
                    </div>
                </div>
            </div>
        </div>

    </div>
<?php

```
