interface.WpDiscuzConstants.php
6.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
<?php
if (!defined("ABSPATH")) {
exit();
}
interface WpDiscuzConstants {
/* === OPTIONS SLUGS === */
const OPTION_SLUG_OPTIONS = "wc_options";
const OPTION_SLUG_VERSION = "wc_plugin_version";
const OPTION_SLUG_DEACTIVATION = "wc_deactivation_modal_never_show";
const OPTION_SLUG_SHOW_DEMO = "wc_show_addons_demo";
const OPTION_SLUG_HASH_KEY = "wc_hash_key";
const OPTION_SLUG_SHOW_VOTE_REG_MESSAGE = "wpdiscuz_show_vote_regenerate_message";
const OPTION_SLUG_SHOW_CLOSED_REG_MESSAGE = "wpdiscuz_show_closed_regenerate_message";
const OPTION_SLUG_SHOW_VOTE_DATA_REG_MESSAGE = "wpdiscuz_show_vote_data_regenerate_message";
const OPTION_SLUG_SHOW_SYNC_COMMENTERS_MESSAGE = "wpdiscuz_show_sync_commenters_message";
const OPTION_SLUG_WIZARD_COMPLETED = "wpdiscuz_wizard_completed";
const OPTION_SLUG_WIZARD_AFTER_UPDATE = "wpdiscuz_wizard_after_update";
const OPTION_SLUG_WIZARD_SHOW_ADDONS_MSG = "wpdiscuz_wizard_show_addons_msg";
const OPTION_SLUG_SHOW_RATING_REBUIL_MSG = "wpdiscuz_show_rating_rebuild_message";
/* === OPTIONS SLUGS === */
const PAGE_WPDISCUZ = "wpdiscuz";
const PAGE_SETTINGS = "wpdiscuz_options_page";
const PAGE_PHRASES = "wpdiscuz_phrases_page";
const PAGE_TOOLS = "wpdiscuz_tools_page";
const PAGE_ADDONS = "wpdiscuz_addons_page";
const PAGE_COMMENTS = "edit-comments.php";
/* === TABS SLUGS === */
const TAB_FORM = "form";
const TAB_RECAPTCHA = "recaptcha";
const TAB_LOGIN = "login";
const TAB_SOCIAL = "social";
const TAB_RATING = "rating";
const TAB_THREAD_DISPLAY = "thread_display";
const TAB_THREAD_LAYOUTS = "thread_layouts";
const TAB_THREAD_STYLES = "thread_styles";
const TAB_SUBSCRIPTION = "subscription";
const TAB_LABELS = "labels";
const TAB_MODERATION = "moderation";
const TAB_CONTENT = "content";
const TAB_LIVE = "live";
const TAB_INLINE = "inline";
const TAB_GENERAL = "general";
/* === META KEYS === */
const META_KEY_VOTES = "wpdiscuz_votes";
const META_KEY_VOTES_SEPARATE = "wpdiscuz_votes_seperate";
const META_KEY_CLOSED = "wpdiscuz_closed";
const META_KEY_FEEDBACK_FORM_ID = "wpdiscuz_feedback_form_id";
const META_KEY_LAST_EDITED_AT = "wpdiscuz_last_edited_at";
const META_KEY_LAST_EDITED_BY = "wpdiscuz_last_edited_by";
/* === SUBSCRIPTION TYPES === */
const SUBSCRIPTION_POST = "post";
const SUBSCRIPTION_ALL_COMMENT = "all_comment";
const SUBSCRIPTION_COMMENT = "comment";
/* === TRANSIENT KEYS === */
const TRS_POSTS_AUTHORS = "wpdiscuz_posts_authors";
/* === COOKIES === */
const COOKIE_HIDE_BUBBLE_HINT = "wpdiscuz_hide_bubble_hint";
/* === CACHE === */
const WPDISCUZ_CACHE_DIR = "/wpdiscuz/cache/";
const COMMENTS_CACHE_DIR = "/wpdiscuz/cache/comments/";
const USERS_CACHE_DIR = "/wpdiscuz/cache/users/";
const EXTRA_CACHE_DIR = "extra/";
/* === STICKY COMMENTS === */
const WPDISCUZ_STICKY_COMMENT = "wpdiscuz_sticky";
/* === PRIVATE COMMENTS === */
const WPDISCUZ_PRIVATE_COMMENT = "private";
/* === TOOLS === */
const OPTIONS_DIR = "/wpdiscuz/options/";
const OPTIONS_FILENAME = "wpdiscuz-options";
const PHRASES_FILENAME = "wpdiscuz-phrases";
/* === STATISTICS === */
const POSTMETA_STATISTICS = "_wpdiscuz_statistics";
const POSTMETA_REACTED = "reacted";
const POSTMETA_RATING_COUNT = "wpdiscuz_rating_count";
const POSTMETA_RATING_SEPARATE_AVG = "wpdiscuz_post_rating_";
const POSTMETA_RATING_SEPARATE_COUNT = "wpdiscuz_post_rating_count_";
/* === USER CONTENT === */
const TRS_USER_HASH = "wpdiscuz_user_hash_";
/* === SOCIAL LOGIN */
const WPDISCUZ_SOCIAL_PROVIDER_KEY = "wpdiscuz_social_provider";
/* === USER META */
const USERMETA_LAST_VISIT = "wpdiscuz_last_visit";
/* === WPDISCUZ FEEDBACK SHORTCODE */
const WPDISCUZ_FEEDBACK_SHORTCODE = "wpdiscuz-feedback";
/* === Media Uploading === */
const METAKEY_ATTCHMENT_COMMENT_ID = "_wmu_comment_id";
const METAKEY_ATTCHMENT_OWNER_IP = "_wmu_owner_ip";
const METAKEY_ATTCHMENT_IMPORTED_FROM = "_wmu_imported_from";
const METAKEY_ATTACHMENTS = "wmu_attachments";
const KEY_IMAGES = "images";
const INPUT_NAME = "wmu_files";
const DELETE_UNATTACHED_FILES_ACTION = "wpdiscuz_delete_unattached_images";
const DELETE_UNATTACHED_FILES_KEY_RECURRENCE = "wpdiscuz_delete_unattached_images_every_48h";
const DELETE_UNATTACHED_FILES_RECURRENCE = 48;
/* === POST RATING */
const POSTMETA_POST_RATING = "wpdiscuz_post_rating";
const POSTMETA_POST_RATING_COUNT = "wpdiscuz_post_rating_count";
/* === NONCE */
const GLOBAL_NONCE_NAME = "wpdiscuz_nonce";
}