WS_OK_7.4.33 HEX
HEX
Server: nginx/1.21.4
System: Linux v12674 6.8.0-85-generic #85-Ubuntu SMP PREEMPT_DYNAMIC Thu Sep 18 15:26:59 UTC 2025 x86_64
User: endtheignorance (1014)
PHP: 7.4.33
Disabled: exec,passthru,shell_exec,system,proc_open,popen,parse_ini_file,show_source
Upload Files
File: /storage/v12674/lcaginesisstore/public_html/wp-content/plugins/comments-plus/comments-plus.php
<?php
/**
 * Plugin Name: Disable Comments
 * Plugin URI: https://wordpress.org/plugins/comments-plus/
 * Description: Allows administrators to globally disable comments on their site. Comments can be disabled for individual record types.
 * Author: Themeisle
 * Version: 1.3.2
 * Text Domain: comments-plus
 * Domain Path: /languages/
 * Author URI: https://themeisle.com
 * Framework Version: FACTORY_480_VERSION
 */

// Exit if accessed directly
if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

/**
 * Developers who contributions in the development plugin:
 *
 * Alexander Kovalev
 * ---------------------------------------------------------------------------------
 * Full plugin development.
 *
 * Email:         alex.kovalevv@gmail.com
 * Personal card: https://alexkovalevv.github.io
 * Personal repo: https://github.com/alexkovalevv
 * ---------------------------------------------------------------------------------
 */

/**
 * -----------------------------------------------------------------------------
 * CHECK REQUIREMENTS
 * Check compatibility with php and wp version of the user's site. As well as checking
 * compatibility with other plugins from Webcraftic.
 * -----------------------------------------------------------------------------
 */

require_once( dirname( __FILE__ ) . '/libs/factory/core/includes/class-factory-requirements.php' );

// @formatter:off
$wcm_plugin_info = [
	'prefix'               => 'wbcr_comments_plus_', // wbcr_cmp
	'plugin_name'          => 'wbcr_comments_plus',
	'plugin_title'         => 'Disable Comments',

	// PLUGIN SUPPORT
	'support_details'      => [
		'url'       => 'https://themeisle.com',
		'pages_map' => [
			'support' => 'support',           // {site}/support
			'docs'    => 'docs'               // {site}/docs
		]
	],

	// PLUGIN SUBSCRIBE FORM
	'subscribe_widget'     => true,
	'subscribe_settings'   => [ 'group_id' => '105408898' ],

	// PLUGIN ADVERTS
	'render_adverts'       => true,
	'adverts_settings'     => [
		'dashboard_widget' => true, // show dashboard widget (default: false)
		'right_sidebar'    => true, // show adverts sidebar (default: false)
		'notice'           => true, // show notice message (default: false)
	],

	// FRAMEWORK MODULES
	'load_factory_modules' => [
		[ 'libs/factory/bootstrap', 'factory_bootstrap_482', 'admin' ],
		[ 'libs/factory/forms', 'factory_forms_480', 'admin' ],
		[ 'libs/factory/pages', 'factory_pages_480', 'admin' ],
		[ 'libs/factory/templates', 'factory_templates_134', 'all' ],
		[ 'libs/factory/adverts', 'factory_adverts_159', 'admin' ]
	]
];

$wcm_compatibility = new Wbcr_Factory480_Requirements( __FILE__, array_merge( $wcm_plugin_info, [
	'plugin_already_activate'          => defined( 'WCM_PLUGIN_ACTIVE' ),
	'required_php_version'             => '5.4',
	'required_wp_version'              => '4.2.0',
	'required_clearfy_check_component' => false
] ) );

/**
 * If the plugin is compatible, then it will continue its work, otherwise it will be stopped,
 * and the user will throw a warning.
 */
if ( ! $wcm_compatibility->check() ) {
	return;
}

/**
 * -----------------------------------------------------------------------------
 * CONSTANTS
 * Install frequently used constants and constants for debugging, which will be
 * removed after compiling the plugin.
 * -----------------------------------------------------------------------------
 */

// This plugin is activated
define( 'WCM_PLUGIN_ACTIVE', true );
define( 'WCM_PLUGIN_VERSION', $wcm_compatibility->get_plugin_version() );
define( 'WCM_PLUGIN_DIR', dirname( __FILE__ ) );
define( 'WCM_PLUGIN_BASE', plugin_basename( __FILE__ ) );
define( 'WCM_PLUGIN_URL', plugins_url( '', __FILE__ ) );
define( 'WCM_PLUGIN_FILE', __FILE__ );


/**
 * -----------------------------------------------------------------------------
 * PLUGIN INIT
 * -----------------------------------------------------------------------------
 */

require_once( WCM_PLUGIN_DIR . '/libs/factory/core/boot.php' );
require_once( WCM_PLUGIN_DIR . '/includes/class-plugin.php' );

try {
	new WCM_Plugin( __FILE__, array_merge( $wcm_plugin_info, [
		'plugin_version'     => WCM_PLUGIN_VERSION,
		'plugin_text_domain' => $wcm_compatibility->get_text_domain(),
	] ) );
} catch ( Exception $e ) {
	// Plugin wasn't initialized due to an error
	define( 'WCM_PLUGIN_THROW_ERROR', true );

	$wcm_plugin_error_func = function () use ( $e ) {
		$error = sprintf( "The %s plugin has stopped. <b>Error:</b> %s Code: %s", 'Disable Comments', $e->getMessage(), $e->getCode() );
		echo '<div class="notice notice-error"><p>' . $error . '</p></div>';
	};

	add_action( 'admin_notices', $wcm_plugin_error_func );
	add_action( 'network_admin_notices', $wcm_plugin_error_func );
}
// @formatter:on