Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93
/home/sportsfe.../httpdocs/wp-conte.../plugins/password.../includes
File: class-ppw-constants.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* The admin-specific functionality of the plugin.
[2] Fix | Delete
*
[3] Fix | Delete
* @link https://www.buildwps.com/
[4] Fix | Delete
* @since 1.0.0
[5] Fix | Delete
*
[6] Fix | Delete
* @package Prevent_ur_pages
[7] Fix | Delete
* @subpackage Prevent_ur_pages/include
[8] Fix | Delete
*/
[9] Fix | Delete
[10] Fix | Delete
/**
[11] Fix | Delete
*
[12] Fix | Delete
* Defines the Constants
[13] Fix | Delete
*
[14] Fix | Delete
* @package Prevent_ur_pages
[15] Fix | Delete
* @subpackage Prevent_ur_pages/include
[16] Fix | Delete
* @author Bwps <support@bwps.us>
[17] Fix | Delete
*/
[18] Fix | Delete
[19] Fix | Delete
if ( ! class_exists( 'PPW_Constants' ) ) {
[20] Fix | Delete
/**
[21] Fix | Delete
* Constants helper class
[22] Fix | Delete
*
[23] Fix | Delete
* Class PPW_Free_Constants
[24] Fix | Delete
*/
[25] Fix | Delete
class PPW_Constants {
[26] Fix | Delete
// Hook.
[27] Fix | Delete
const HOOK_IS_PRO_ACTIVATE = 'ppw_is_pro_activate';
[28] Fix | Delete
[29] Fix | Delete
const HOOK_CUSTOM_STYLE_FORM_ENTIRE_SITE = 'ppw_free_custom_style_form_entire_site';
[30] Fix | Delete
[31] Fix | Delete
const HOOK_MESSAGE_ENTERING_WRONG_PASSWORD = 'ppwp_text_for_entering_wrong_password';
[32] Fix | Delete
[33] Fix | Delete
const HOOK_MESSAGE_PASSWORD_FORM = 'ppwp_customize_password_form_message';
[34] Fix | Delete
[35] Fix | Delete
const HOOK_CUSTOM_PASSWORD_FORM = 'ppwp_customize_password_form';
[36] Fix | Delete
[37] Fix | Delete
const HOOK_CALLBACK_URL = 'ppwp_callback_url';
[38] Fix | Delete
[39] Fix | Delete
const CALL_BACK_URL_PARAM = 'callback_url';
[40] Fix | Delete
[41] Fix | Delete
const HOOK_SHOULD_RENDER_PASSWORD_FORM = 'ppwp_should_render_password_form';
[42] Fix | Delete
[43] Fix | Delete
const HOOK_DEFAULT_TAB = 'ppw_default_tab';
[44] Fix | Delete
[45] Fix | Delete
const HOOK_SITEWIDE_TAB = 'ppw_sitewide_tab';
[46] Fix | Delete
[47] Fix | Delete
const HOOK_PCP_TAB = 'ppw_pcp_tab';
[48] Fix | Delete
[49] Fix | Delete
const HOOK_ADD_NEW_TAB = 'ppw_add_new_tab';
[50] Fix | Delete
[51] Fix | Delete
const HOOK_ADD_NEW_SITEWIDE_SUBMENU = 'ppw_sitewide_submenu_add_new_tab';
[52] Fix | Delete
[53] Fix | Delete
const HOOK_ADD_NEW_PCP_SUBMENU = 'ppw_pcp_submenu_add_new_tab';
[54] Fix | Delete
[55] Fix | Delete
const HOOK_RENDER_CONTENT_FOR_TAB = 'ppw_render_content_';
[56] Fix | Delete
[57] Fix | Delete
const HOOK_CUSTOM_TAB = 'ppw_custom_tab';
[58] Fix | Delete
[59] Fix | Delete
const HOOK_CUSTOM_SITEWIDE_TAB = 'ppw_custom_sitewide_tab';
[60] Fix | Delete
[61] Fix | Delete
const HOOK_CUSTOM_PCP_TAB = 'ppw_custom_pcp_tab';
[62] Fix | Delete
[63] Fix | Delete
const HOOK_RENDER_CONTENT_FOR_SITEWIDE_TAB = 'ppw_render_sitewide_content_';
[64] Fix | Delete
[65] Fix | Delete
const HOOK_RENDER_CONTENT_FOR_PCP_TAB = 'ppw_render_pcp_content_';
[66] Fix | Delete
[67] Fix | Delete
const HOOK_COOKIE_EXPIRED = 'post_password_expires';
[68] Fix | Delete
[69] Fix | Delete
const HOOK_CHECK_PASSWORD_BEFORE_RENDER_CONTENT = 'ppw_check_password_before_render_content';
[70] Fix | Delete
[71] Fix | Delete
const HOOK_FUNCTION_HANDLE_META_BOX = 'ppw_function_handle_meta_box';
[72] Fix | Delete
[73] Fix | Delete
const HOOK_META_BOX_POSITION = 'ppw_meta_box_position';
[74] Fix | Delete
[75] Fix | Delete
const HOOK_CHECK_PASSWORD_IS_VALID = 'ppw_check_password_is_valid';
[76] Fix | Delete
[77] Fix | Delete
const HOOK_BEFORE_RENDER_FORM_ENTIRE_SITE = 'ppw_before_render_form_entire_site';
[78] Fix | Delete
[79] Fix | Delete
const HOOK_HIDE_DEFAULT_PW_WP_POSITION = 'ppw_hide_default_pw_wp_position';
[80] Fix | Delete
[81] Fix | Delete
const HOOK_PLUGIN_INFO = 'ppw_plugin_info';
[82] Fix | Delete
[83] Fix | Delete
const HOOK_CUSTOM_HEADER_FORM_ENTIRE_SITE = 'ppw_custom_header_form_entire_site';
[84] Fix | Delete
[85] Fix | Delete
const HOOK_CUSTOM_FOOTER_FORM_ENTIRE_SITE = 'ppw_custom_footer_form_entire_site';
[86] Fix | Delete
[87] Fix | Delete
const HOOK_CUSTOM_TEXT_FEATURE_REMOVE_DATA = 'ppw_custom_text_feature_remove_data';
[88] Fix | Delete
[89] Fix | Delete
const HOOK_POST_TYPES = 'ppw_post_types';
[90] Fix | Delete
[91] Fix | Delete
const HOOK_MIGRATE_COMPLETE_MESSAGE = 'ppw_complete_message';
[92] Fix | Delete
[93] Fix | Delete
const HOOK_PARAM_PASSWORD_SUCCESS = 'ppw_custom_param';
[94] Fix | Delete
[95] Fix | Delete
const HOOK_SHORT_CODE_ATTRS = 'ppw_short_code_attributes';
[96] Fix | Delete
[97] Fix | Delete
const HOOK_SUPPORTED_WHITELIST_ROLES = 'ppw_supported_white_list_roles';
[98] Fix | Delete
[99] Fix | Delete
const HOOK_SUPPORTED_POST_TYPES = 'ppw_supported_post_types';
[100] Fix | Delete
[101] Fix | Delete
const HOOK_SHORT_CODE_TEMPLATE = 'ppw_short_code_template';
[102] Fix | Delete
[103] Fix | Delete
const HOOK_RESTRICT_CONTENT_ERROR_MESSAGE = 'ppw_restrict_content_custom_error_message';
[104] Fix | Delete
[105] Fix | Delete
const HOOK_RESTRICT_CONTENT_BEFORE_CHECK_PWD = 'ppw_restrict_content_before_check_pw';
[106] Fix | Delete
[107] Fix | Delete
const HOOK_RESTRICT_CONTENT_AFTER_VALID_PWD = 'ppw_restrict_content_after_valid_pw';
[108] Fix | Delete
[109] Fix | Delete
const HOOK_SHORT_CODE_WHITELISTED_ROLES = 'ppw_restrict_content_whitelisted_roles';
[110] Fix | Delete
[111] Fix | Delete
const HOOK_SHORT_CODE_ERROR_MESSAGE = 'ppw_restrict_content_error_message';
[112] Fix | Delete
[113] Fix | Delete
const HOOK_SHORTCODE_NOT_SUPPORT_TYPE_ERROR_MESSAGE = 'ppw_restrict_content_not_support_post_type_error_message';
[114] Fix | Delete
[115] Fix | Delete
const HOOK_SHORT_CODE_BEFORE_CHECK_PASSWORD = 'ppw_restrict_content_before_check_password';
[116] Fix | Delete
[117] Fix | Delete
const HOOK_SHORT_CODE_AFTER_CHECK_PASSWORD = 'ppw_restrict_content_before_check_password';
[118] Fix | Delete
[119] Fix | Delete
const HOOK_SHORT_CODE_VALID_POST_DATA = 'ppw_restrict_content_valid_post_data';
[120] Fix | Delete
[121] Fix | Delete
const HOOK_HANDLE_BEFORE_RENDER_WOO_PRODUCT = 'ppw_handle_before_render_woo_product';
[122] Fix | Delete
[123] Fix | Delete
const HOOK_SHORTCODE_ATTRIBUTES_VALIDATION = 'ppw_shortcode_attributes_validation';
[124] Fix | Delete
[125] Fix | Delete
const HOOK_SHORTCODE_PASSWORDS = 'ppw_shortcode_passwords';
[126] Fix | Delete
[127] Fix | Delete
const HOOK_SHORTCODE_RENDER_CONTENT = 'ppw_shortcode_render_content';
[128] Fix | Delete
[129] Fix | Delete
const HOOK_SHORTCODE_CONTENT_SOURCE = 'ppw_content_shortcode_source';
[130] Fix | Delete
[131] Fix | Delete
const HOOK_SHORTCODE_SETTINGS_EXTENDS = 'ppw_shortcode_settings_extend';
[132] Fix | Delete
[133] Fix | Delete
const HOOK_MASTER_PASSWORDS_VALID_POST_TYPES = 'ppw_master_passwords_valid_post_types';
[134] Fix | Delete
[135] Fix | Delete
const HOOK_SHORTCODE_BEAVER_BUILDER_FIELDS = 'ppw_shortcode_beaver_builder_fields';
[136] Fix | Delete
[137] Fix | Delete
const HOOK_SHORTCODE_BEAVER_BUILDER_GENERAL_FIELDS = 'ppw_shortcode_beaver_builder_general_fields';
[138] Fix | Delete
[139] Fix | Delete
const HOOK_SHORTCODE_BEAVER_BUILDER_INSTRUCTION_FIELDS = 'ppw_shortcode_beaver_builder_instruction_fields';
[140] Fix | Delete
[141] Fix | Delete
const HOOK_SHORTCODE_BEAVER_BUILDER_ATTRIBUTES = 'ppw_shortcode_beaver_builder_attributes';
[142] Fix | Delete
[143] Fix | Delete
const HOOK_SHORTCODE_ELEMENTOR_CONTROLS = 'ppw_shortcode_elementor_controls';
[144] Fix | Delete
[145] Fix | Delete
const HOOK_SHORTCODE_ELEMENTOR_ATTRIBUTES = 'ppw_shortcode_elementor_attributes';
[146] Fix | Delete
[147] Fix | Delete
const HOOK_SHORTCODE_ELEMENTOR_CONTENT = 'ppw_shortcode_elementor_content';
[148] Fix | Delete
[149] Fix | Delete
const HOOK_SHORTCODE_ELEMENTOR_PREVIEW_CONTENT = 'ppw_shortcode_elementor_preview_content';
[150] Fix | Delete
[151] Fix | Delete
const HOOK_SHORTCODE_BEFORE_RENDER_PASSWORD_FORM = 'ppw_shortcode_before_render_password_form';
[152] Fix | Delete
[153] Fix | Delete
const HOOK_SIDEBAR_SHORTCODE = 'ppw_sidebar_shortcode';
[154] Fix | Delete
[155] Fix | Delete
const HOOK_CHECK_CONTENT_IS_PROTECTED_BY_PRO = 'ppw_check_content_is_protected_by_pro';
[156] Fix | Delete
[157] Fix | Delete
const HOOK_CUSTOM_OPTION_HIDE_PROTECT_CONTENT = 'ppw_custom_option_hide_protect_content';
[158] Fix | Delete
[159] Fix | Delete
const HOOK_CUSTOM_POST_TYPE_HIDE_PROTECTED_POST = 'ppw_custom_post_type_for_hide_protected_post';
[160] Fix | Delete
[161] Fix | Delete
const HOOK_CUSTOM_POST_TYPE_RECENT_POST = 'ppw_custom_post_type_for_recent_post';
[162] Fix | Delete
[163] Fix | Delete
const HOOK_CUSTOM_POST_TYPE_NEXT_AND_PREVIOUS = 'ppw_custom_post_type_for_next_and_previous';
[164] Fix | Delete
[165] Fix | Delete
const HOOK_CUSTOM_POST_ID_HIDE_PROTECTED_POST = 'ppw_custom_post_id_for_hide_protected_post';
[166] Fix | Delete
[167] Fix | Delete
const HOOK_CUSTOM_DEFAULT_OPTIONS_HIDE_PROTECTED_POST = 'ppw_custom_default_options_for_hide_protected_post';
[168] Fix | Delete
[169] Fix | Delete
const HOOK_CUSTOM_POSITIONS_HIDE_PROTECTED_POST = 'ppw_custom_positions_for_hide_protected_post';
[170] Fix | Delete
[171] Fix | Delete
const HOOK_SHORTCODE_ALLOW_BYPASS_VALID_POST_TYPE = 'ppw_shortcode_allow_bypass_valid_post_type';
[172] Fix | Delete
[173] Fix | Delete
const HOOK_ADVANCED_TAB_LOAD_ASSETS = 'ppw_misc_tab_load_assets';
[174] Fix | Delete
[175] Fix | Delete
const HOOK_ADVANCED_VALID_INPUT_DATA = 'ppw_misc_valid_input_data';
[176] Fix | Delete
// End hook.
[177] Fix | Delete
[178] Fix | Delete
// Short code attribute.
[179] Fix | Delete
const SHORT_CODE_FORM_HEADLINE = '[PPWP_FORM_HEADLINE]';
[180] Fix | Delete
[181] Fix | Delete
const SHORT_CODE_FORM_INSTRUCT = '[PPWP_FORM_INSTRUCTIONS]';
[182] Fix | Delete
[183] Fix | Delete
const SHORT_CODE_FORM_PLACEHOLDER = '[PPW_PLACEHOLDER]';
[184] Fix | Delete
[185] Fix | Delete
const SHORT_CODE_FORM_AUTH = '[PPW_AUTH]';
[186] Fix | Delete
[187] Fix | Delete
const SHORT_CODE_FORM_CURRENT_URL = '[PPW_CURRENT_URL]';
[188] Fix | Delete
[189] Fix | Delete
const SHORT_CODE_FORM_ERROR_MESSAGE = '[PPW_ERROR_MESSAGE]';
[190] Fix | Delete
[191] Fix | Delete
const SHORT_CODE_BUTTON = '[PPW_BUTTON_LABEL]';
[192] Fix | Delete
[193] Fix | Delete
const SHORT_CODE_FORM_ID = '[PPW_FORM_ID]';
[194] Fix | Delete
[195] Fix | Delete
const SHORT_CODE_FORM_CLASS = '[PPW_FORM_CLASS]';
[196] Fix | Delete
[197] Fix | Delete
const SHORT_CODE_PASSWORD_LABEL = '[PPWP_FORM_PASSWORD_LABEL]';
[198] Fix | Delete
[199] Fix | Delete
const SHORTCODE_ABOVE_PASSWORD_INPUT = '[PPWP_FORM_ABOVE_PASSWORD_INPUT]';
[200] Fix | Delete
[201] Fix | Delete
const SHORTCODE_BELOW_PASSWORD_INPUT = '[PPWP_FORM_BELOW_PASSWORD_INPUT]';
[202] Fix | Delete
[203] Fix | Delete
const SHORTCODE_DESC_ABOVE_BTN = '[SHORTCODE_DESC_ABOVE_BTN]';
[204] Fix | Delete
[205] Fix | Delete
const SHORTCODE_DESC_BELOW_FORM = '[SHORTCODE_DESC_BELOW_FORM]';
[206] Fix | Delete
// End short code attribute.
[207] Fix | Delete
[208] Fix | Delete
// Default.
[209] Fix | Delete
const DEFAULT_SUBMIT_LABEL = 'Enter';
[210] Fix | Delete
[211] Fix | Delete
const DEFAULT_PASSWORD_LABEL = 'Password:';
[212] Fix | Delete
[213] Fix | Delete
const DEFAULT_HEADLINE_TEXT = '';
[214] Fix | Delete
[215] Fix | Delete
const DEFAULT_PLACEHOLDER = '';
[216] Fix | Delete
[217] Fix | Delete
const DEFAULT_IS_SHOW_PASSWORD = 0;
[218] Fix | Delete
[219] Fix | Delete
const DEFAULT_FORM_BACKGROUND_COLOR = '';
[220] Fix | Delete
[221] Fix | Delete
const DEFAULT_FORM_PADDING = '';
[222] Fix | Delete
[223] Fix | Delete
const DEFAULT_FORM_MARGIN = '';
[224] Fix | Delete
[225] Fix | Delete
const DEFAULT_FORM_BORDER_RADIUS = '';
[226] Fix | Delete
[227] Fix | Delete
const DEFAULT_HEADLINE_FONT_SIZE = '';
[228] Fix | Delete
[229] Fix | Delete
const DEFAULT_HEADLINE_FONT_WEIGHT = '';
[230] Fix | Delete
[231] Fix | Delete
const DEFAULT_HEADLINE_FONT_COLOR = '';
[232] Fix | Delete
[233] Fix | Delete
const DEFAULT_TEXT_FONT_SIZE = '';
[234] Fix | Delete
[235] Fix | Delete
const DEFAULT_TEXT_FONT_WEIGHT = '';
[236] Fix | Delete
[237] Fix | Delete
const DEFAULT_TEXT_FONT_COLOR = '';
[238] Fix | Delete
[239] Fix | Delete
const DEFAULT_ERROR_TEXT_FONT_SIZE = '';
[240] Fix | Delete
[241] Fix | Delete
const DEFAULT_ERROR_TEXT_FONT_WEIGHT = '';
[242] Fix | Delete
[243] Fix | Delete
const DEFAULT_ERROR_TEXT_FONT_COLOR = '#dc3232';
[244] Fix | Delete
[245] Fix | Delete
const DEFAULT_ERROR_TEXT_BACKGROUND_COLOR = '';
[246] Fix | Delete
[247] Fix | Delete
const DEFAULT_BUTTON_TEXT_FONT_COLOR = '';
[248] Fix | Delete
[249] Fix | Delete
const DEFAULT_BUTTON_BACKGROUND_COLOR = '';
[250] Fix | Delete
[251] Fix | Delete
const DEFAULT_BUTTON_TEXT_HOVER_COLOR = '';
[252] Fix | Delete
[253] Fix | Delete
const DEFAULT_BUTTON_BACKGROUND_HOVER_COLOR = '';
[254] Fix | Delete
[255] Fix | Delete
const DEFAULT_SHOW_PASSWORD_TEXT = 'Show password';
[256] Fix | Delete
[257] Fix | Delete
const DEFAULT_SHOW_PASSWORD_TEXT_SIZE = '';
[258] Fix | Delete
[259] Fix | Delete
const DEFAULT_PASSWORD_LABEL_FONT_COLOR = '';
[260] Fix | Delete
// End default.
[261] Fix | Delete
[262] Fix | Delete
// Message.
[263] Fix | Delete
const DEFAULT_FORM_MESSAGE = 'This content is password protected. To view it please enter your password below:';
[264] Fix | Delete
[265] Fix | Delete
const DEFAULT_SHORTCODE_DESC_ABOVE_PWD_BTN = '';
[266] Fix | Delete
[267] Fix | Delete
const DEFAULT_SHORTCODE_DESC_BELOW_PWD_FORM = '';
[268] Fix | Delete
[269] Fix | Delete
const DEFAULT_WRONG_PASSWORD_MESSAGE = 'Please enter the correct password!';
[270] Fix | Delete
[271] Fix | Delete
const DEFAULT_ERROR_RECAPTCHA_MESSAGE = 'Google reCAPTCHA verification failed, please try again later.';
[272] Fix | Delete
[273] Fix | Delete
const BAD_REQUEST_MESSAGE = 'Our server cannot understand the data request!';
[274] Fix | Delete
[275] Fix | Delete
const EMPTY_PASSWORD = 'Please fill out empty fields.';
[276] Fix | Delete
[277] Fix | Delete
const DUPLICATE_PASSWORD = 'You can\'t create duplicate password. Please try again.';
[278] Fix | Delete
[279] Fix | Delete
const SPACE_PASSWORD = 'Spaces not accepted in password. Please remove them and try again.';
[280] Fix | Delete
// End message.
[281] Fix | Delete
[282] Fix | Delete
// Modules.
[283] Fix | Delete
const MENU_NAME = 'wp_protect_password_options';
[284] Fix | Delete
[285] Fix | Delete
const SITEWIDE_PAGE_PREFIX = 'ppwp-sitewide';
[286] Fix | Delete
[287] Fix | Delete
const EXTERNAL_SERVICES_PREFIX = 'ppwp-integrations';
[288] Fix | Delete
[289] Fix | Delete
const PCP_PAGE_PREFIX = 'ppwp-partial-protection';
[290] Fix | Delete
[291] Fix | Delete
const META_BOX_MODULE = 'meta-box';
[292] Fix | Delete
[293] Fix | Delete
const ENTIRE_SITE_MODULE = 'entire-site';
[294] Fix | Delete
[295] Fix | Delete
const GENERAL_SETTINGS_MODULE = 'general';
[296] Fix | Delete
[297] Fix | Delete
const EXTERNAL_SETTINGS_MODULE = 'external';
[298] Fix | Delete
[299] Fix | Delete
const EXTERNAL_CONFIGURATION_MODULE = 'external-configuration';
[300] Fix | Delete
[301] Fix | Delete
const MISC_SETTINGS_MODULE = 'misc';
[302] Fix | Delete
[303] Fix | Delete
const TROUBLESHOOT_SETTINGS_MODULE = 'troubleshooting';
[304] Fix | Delete
[305] Fix | Delete
const SHORTCODES_SETTINGS_MODULE = 'shortcodes';
[306] Fix | Delete
// End modules.
[307] Fix | Delete
[308] Fix | Delete
const COOKIE_NAME = 'wp-postpass-role_';
[309] Fix | Delete
[310] Fix | Delete
const ENTIRE_SITE_FORM_NONCE = 'ppw_entire_site_form_nonce';
[311] Fix | Delete
[312] Fix | Delete
const GENERAL_FORM_NONCE = 'ppw_general_form_nonce';
[313] Fix | Delete
[314] Fix | Delete
const PCP_FORM_NONCE = 'ppw_pcp_nonce';
[315] Fix | Delete
[316] Fix | Delete
const ROW_ACTION_NONCE = 'ppw_row_action_nonce';
[317] Fix | Delete
[318] Fix | Delete
const ENTIRE_SITE_OPTIONS = 'wp_protect_password_set_password_options';
[319] Fix | Delete
[320] Fix | Delete
const GENERAL_OPTIONS = 'wp_protect_password_setting_options';
[321] Fix | Delete
[322] Fix | Delete
const MISC_OPTIONS = 'wp_protect_password_misc_options';
[323] Fix | Delete
[324] Fix | Delete
const SHORTCODE_OPTIONS = 'wp_protect_password_shortcode_options';
[325] Fix | Delete
[326] Fix | Delete
const EXTERNAL_OPTIONS = 'wp_protect_password_external_options';
[327] Fix | Delete
[328] Fix | Delete
const POST_PROTECTION_ROLES = 'post_protection_roles';
[329] Fix | Delete
[330] Fix | Delete
const ENTIRE_SITE_COOKIE_NAME = 'pda_protect_password';
[331] Fix | Delete
[332] Fix | Delete
const GLOBAL_PASSWORDS = 'wp_protect_password_multiple_passwords';
[333] Fix | Delete
[334] Fix | Delete
const COOKIE_EXPIRED = 'wpp_password_cookie_expired';
[335] Fix | Delete
[336] Fix | Delete
const COOKIE_EXPIRED_SITEWIDE = 'wpp_password_cookie_expired_sitewide';
[337] Fix | Delete
[338] Fix | Delete
const REMOVE_DATA = 'wpp_remove_data';
[339] Fix | Delete
[340] Fix | Delete
const USE_CUSTOM_FORM_ACTION = 'wpp_use_custom_form_action';
[341] Fix | Delete
[342] Fix | Delete
const NO_RELOAD_PAGE = 'wpp_no_reload_page';
[343] Fix | Delete
[344] Fix | Delete
const USE_SHORTCODE_PAGE_BUILDER = 'wpp_use_shortcode_page_builder';
[345] Fix | Delete
[346] Fix | Delete
const USING_RECAPTCHA = 'wpp_use_recaptcha';
[347] Fix | Delete
[348] Fix | Delete
const RECAPTCHA_TYPE = 'wpp_recaptcha_type';
[349] Fix | Delete
[350] Fix | Delete
const RECAPTCHA_PASSWORD_TYPES = 'wpp_recaptcha_password_types';
[351] Fix | Delete
[352] Fix | Delete
const RECAPTCHA_API_KEY = 'wpp_recaptcha_api_key';
[353] Fix | Delete
[354] Fix | Delete
const RECAPTCHA_V2_CHECKBOX_API_KEY = 'wpp_recaptcha_v2_checkbox_api_key';
[355] Fix | Delete
[356] Fix | Delete
const RECAPTCHA_API_SECRET = 'wpp_recaptcha_api_secret';
[357] Fix | Delete
[358] Fix | Delete
const RECAPTCHA_V2_CHECKBOX_API_SECRET = 'wpp_recaptcha_v2_checkbox_api_secret';
[359] Fix | Delete
[360] Fix | Delete
const RECAPTCHA_SCORE = 'wpp_recaptcha_score';
[361] Fix | Delete
[362] Fix | Delete
const PROTECT_EXCERPT = 'wpp_protect_excerpt';
[363] Fix | Delete
[364] Fix | Delete
const MAX_COOKIE_EXPIRED = 8760;
[365] Fix | Delete
[366] Fix | Delete
const MIN_COOKIE_EXPIRED = 0;
[367] Fix | Delete
[368] Fix | Delete
const DOMAIN = 'password-protect-page';
[369] Fix | Delete
[370] Fix | Delete
const WRONG_PASSWORD_PARAM = 'ppwp_enter_wrong_password';
[371] Fix | Delete
[372] Fix | Delete
const PASSWORD_PARAM_NAME = 'ppwp';
[373] Fix | Delete
[374] Fix | Delete
const PASSWORD_PARAM_VALUE = '1';
[375] Fix | Delete
[376] Fix | Delete
const IS_PROTECT_ENTIRE_SITE = 'ppwp_apply_password_for_entire_site';
[377] Fix | Delete
[378] Fix | Delete
const PASSWORD_ENTIRE_SITE = 'password_for_website';
[379] Fix | Delete
[380] Fix | Delete
const SET_NEW_PASSWORD_ENTIRE_SITE = 'ppwp_set_new_password_for_entire_site';
[381] Fix | Delete
[382] Fix | Delete
const META_BOX_NONCE = 'ppw_meta_box_nonce';
[383] Fix | Delete
[384] Fix | Delete
const SUBSCRIBE_FORM_NONCE = 'ppw_subscribe_form_nonce';
[385] Fix | Delete
[386] Fix | Delete
const USER_SUBSCRIBE = 'ppw_free_subscribe';
[387] Fix | Delete
[388] Fix | Delete
const MIGRATED_DEFAULT_PW = 'migrated_default_pw';
[389] Fix | Delete
[390] Fix | Delete
const MIGRATED_FREE_FLAG = 'migrated_free';
[391] Fix | Delete
[392] Fix | Delete
const PRO_DIRECTORY = 'wp_protect_password/wp-protect-password.php';
[393] Fix | Delete
[394] Fix | Delete
const PRO_ROOT_DIR = 'wp_protect_password';
[395] Fix | Delete
[396] Fix | Delete
const DEV_PRO_DIRECTORY = 'password-protect-page-pro/wp-protect-password.php';
[397] Fix | Delete
[398] Fix | Delete
const DEV_PRO_ROOT_DIR = 'password-protect-page-pro';
[399] Fix | Delete
[400] Fix | Delete
const PPW_HOOK_SHORT_CODE_NAME = 'ppwp';
[401] Fix | Delete
[402] Fix | Delete
const PPW_ERROR_MESSAGE_COLOR = '#dc3232';
[403] Fix | Delete
[404] Fix | Delete
const WP_POST_PASS = 'wp-postpass_';
[405] Fix | Delete
[406] Fix | Delete
const CUSTOM_POST_CLASS = 'ppwp-short-code-post';
[407] Fix | Delete
[408] Fix | Delete
const CUSTOM_TABLE_COLUMN_NAME = 'ppw_password_protection';
[409] Fix | Delete
[410] Fix | Delete
const CUSTOM_TABLE_COLUMN_TITLE = 'Password Protection';
[411] Fix | Delete
[412] Fix | Delete
const DEFAULT_SHORTCODE_CLASS_NAME = 'ppw-restricted-content';
[413] Fix | Delete
[414] Fix | Delete
const DEFAULT_SHORTCODE_HEADLINE = 'Restricted Content';
[415] Fix | Delete
[416] Fix | Delete
const DEFAULT_SHORTCODE_DESCRIPTION = 'To view this protected content, enter the password below:';
[417] Fix | Delete
[418] Fix | Delete
const DEFAULT_SHORTCODE_BUTTON = 'Enter';
[419] Fix | Delete
[420] Fix | Delete
const DEFAULT_SHORTCODE_LABEL = 'Password:';
[421] Fix | Delete
[422] Fix | Delete
const DEFAULT_SHORTCODE_ERROR_MSG = 'Please enter the correct password!';
[423] Fix | Delete
[424] Fix | Delete
const DEFAULT_SHORTCODE_LOADING = 'Loading...';
[425] Fix | Delete
[426] Fix | Delete
const DEFAULT_SHORTCODE_SHOW_PASSWORD = false;
[427] Fix | Delete
[428] Fix | Delete
const DEFAULT_SHORTCODE_SHOW_PASSWORD_TEXT = 'Show password';
[429] Fix | Delete
[430] Fix | Delete
const TBL_NAME = 'pda_passwords';
[431] Fix | Delete
[432] Fix | Delete
const TBL_VERSION = 'pda-pwd-tbl-version';
[433] Fix | Delete
[434] Fix | Delete
const DB_DATA_COLUMN_TABLE = array(
[435] Fix | Delete
array(
[436] Fix | Delete
'old_version' => '1.0',
[437] Fix | Delete
'new_version' => '1.1',
[438] Fix | Delete
'value' => 'hits_count mediumint(9) NOT NULL',
[439] Fix | Delete
),
[440] Fix | Delete
array(
[441] Fix | Delete
'old_version' => '1.1',
[442] Fix | Delete
'new_version' => '1.2',
[443] Fix | Delete
'value' => 'is_default tinyint(1) DEFAULT 0',
[444] Fix | Delete
),
[445] Fix | Delete
array(
[446] Fix | Delete
'old_version' => '1.2',
[447] Fix | Delete
'new_version' => '1.3',
[448] Fix | Delete
'value' => 'expired_date BIGINT DEFAULT NULL',
[449] Fix | Delete
),
[450] Fix | Delete
array(
[451] Fix | Delete
'old_version' => '1.3',
[452] Fix | Delete
'new_version' => '1.4',
[453] Fix | Delete
'value' => 'usage_limit mediumint(9)',
[454] Fix | Delete
),
[455] Fix | Delete
);
[456] Fix | Delete
[457] Fix | Delete
const DB_UPDATE_COLUMN_TABLE = array(
[458] Fix | Delete
array(
[459] Fix | Delete
'old_version' => '1.4',
[460] Fix | Delete
'new_version' => '1.5',
[461] Fix | Delete
'value' => "campaign_app_type campaign_app_type text DEFAULT '' NULL",
[462] Fix | Delete
),
[463] Fix | Delete
array(
[464] Fix | Delete
'old_version' => '1.5',
[465] Fix | Delete
'new_version' => '1.6',
[466] Fix | Delete
'value' => "password password varchar(255) DEFAULT '' NULL",
[467] Fix | Delete
),
[468] Fix | Delete
);
[469] Fix | Delete
[470] Fix | Delete
const PPW_MASTER_GLOBAL = 'master_global';
[471] Fix | Delete
[472] Fix | Delete
const PPW_MASTER_ROLE = 'master_role_';
[473] Fix | Delete
[474] Fix | Delete
const MASTER_COOKIE_NAME = 'ppw_master-';
[475] Fix | Delete
[476] Fix | Delete
// Const for feature "Hide Protected Content".
[477] Fix | Delete
[478] Fix | Delete
const DEFAULT_POST_TYPE = array( 'post', 'page' );
[479] Fix | Delete
[480] Fix | Delete
const HIDE_PROTECTED = 'ppw_hide_protected_';
[481] Fix | Delete
[482] Fix | Delete
const HIDE_SELECTED = 'ppw_hide_selected_';
[483] Fix | Delete
[484] Fix | Delete
const FRONT_PAGE = 'ppw_front_page';
[485] Fix | Delete
[486] Fix | Delete
const CATEGORY_PAGE = 'ppw_category_page';
[487] Fix | Delete
[488] Fix | Delete
const TAG_PAGE = 'ppw_tag_page';
[489] Fix | Delete
[490] Fix | Delete
const AUTHOR_PAGE = 'ppw_author_page';
[491] Fix | Delete
[492] Fix | Delete
const ARCHIVES_PAGE = 'ppw_archives_page';
[493] Fix | Delete
[494] Fix | Delete
const NEXT_PREVIOUS = 'ppw_next_previous';
[495] Fix | Delete
[496] Fix | Delete
const RECENT_POST = 'ppw_recent_post';
[497] Fix | Delete
[498] Fix | Delete
const SEARCH_RESULTS = 'ppw_search_results';
[499] Fix | Delete
12
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function