* Module Description: Replace the default comment form with a modern, feature‑rich alternative.
* Requires Connection: Yes
* Additional Search Queries: comments, comment, facebook, social
* @package automattic/jetpack
use Automattic\Jetpack\Assets;
if ( ! defined( 'ABSPATH' ) ) {
Assets::add_resource_hint(
'//jetpack.wordpress.com',
'//public-api.wordpress.com',
* Add the main commenting system.
require __DIR__ . '/comments/comments.php';
require __DIR__ . '/comments/subscription-modal-on-comment/class-jetpack-subscription-modal-on-comment.php';
* Add the admin functionality.
require __DIR__ . '/comments/admin.php';
function jetpack_comments_load() {
Jetpack::enable_module_configurable( __FILE__ );
add_action( 'jetpack_modules_loaded', 'jetpack_comments_load' );