← 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 | +} | |