PluginProbe
Jetpack – WP Security, Backup, Speed, & Growth / 16.3
Jetpack – WP Security, Backup, Speed, & Growth v16.3
16.3 16.3-beta 16.3-a.5 16.3-a.7 16.3-a.3 16.3-a.1 16.2 16.2-beta 12.0.3 12.1.3 12.2.3 12.3.2 12.4.2 12.5.2 12.6.4 12.7.3 12.8.3 12.9.5 13.0.2 13.1.5 13.2.4 13.3.3 13.4.5 13.5.2 13.6.2 All 508 releases
← All changes | jetpack_vendor/automattic/jetpack-comments/src/class-comments.php +51 -0 16.2-beta → 16.3 View file →
@@ -1,0 +1,51 @@
1 +<?php
2 +/**
3 + * Jetpack Comments.
4 + *
5 + * @package automattic/jetpack-comments
6 + */
7 +
8 +namespace Automattic\Jetpack\Comments;
9 +
10 +/**
11 + * Package entry point.
12 + */
13 +class Comments {
14 +
15 + /**
16 + * Package version.
17 + */
18 + const PACKAGE_VERSION = '0.4.0';
19 +
20 + /**
21 + * Whether Jetpack Comments should load.
22 + *
23 + * @since 0.1.0
24 + *
25 + * @return bool
26 + */
27 + public static function is_enabled() {
28 + /**
29 + * Load Jetpack Comments in place of the site's existing comment experience.
30 + *
31 + * @since 0.1.0
32 + *
33 + * @param bool $enabled Whether to load Jetpack Comments. Default false.
34 + */
35 + return (bool) apply_filters( 'jetpack_comments_new_hotness', false );
36 + }
37 +
38 + /**
39 + * Register the package's features. Safe to call more than once.
40 + *
41 + * @since 0.1.0
42 + *
43 + * @return void
44 + */
45 + public static function init() {
46 + Comment_Form::init();
47 + Checkpoint::init();
48 + Avatars::init();
49 + Block_Editor::init();
50 + }
51 +}