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

Warning: Undefined array key "page_file_edit_line" in /home/sportsfever/public_html/filemanger/edit_text_line.php on line 32
/home/sportsfe.../httpdocs/wp-conte.../plugins/wpforms-.../src/Admin/Builder
File: Help.php
'confirmation' => [
[1000] Fix | Delete
'/docs/setup-form-confirmation-wpforms/',
[1001] Fix | Delete
'/docs/how-to-create-conditional-form-confirmations/',
[1002] Fix | Delete
],
[1003] Fix | Delete
'confirmation message' => [
[1004] Fix | Delete
'/docs/setup-form-confirmation-wpforms/',
[1005] Fix | Delete
'/docs/how-to-create-conditional-form-confirmations/',
[1006] Fix | Delete
],
[1007] Fix | Delete
'redirect' => [
[1008] Fix | Delete
'/docs/setup-form-confirmation-wpforms/',
[1009] Fix | Delete
'/docs/how-to-create-conditional-form-confirmations/',
[1010] Fix | Delete
],
[1011] Fix | Delete
'go to url (redirect)' => [
[1012] Fix | Delete
'/docs/setup-form-confirmation-wpforms/',
[1013] Fix | Delete
'/docs/how-to-create-conditional-form-confirmations/',
[1014] Fix | Delete
],
[1015] Fix | Delete
'confirmation page' => [
[1016] Fix | Delete
'/docs/setup-form-confirmation-wpforms/',
[1017] Fix | Delete
'/docs/how-to-create-conditional-form-confirmations/',
[1018] Fix | Delete
],
[1019] Fix | Delete
'conditional confirmation' => [
[1020] Fix | Delete
'/docs/setup-form-confirmation-wpforms/',
[1021] Fix | Delete
'/docs/how-to-create-conditional-form-confirmations/',
[1022] Fix | Delete
],
[1023] Fix | Delete
'calculation' => [
[1024] Fix | Delete
'/docs/calculations-addon/',
[1025] Fix | Delete
'/docs/building-formulas-with-the-calculations-addon/',
[1026] Fix | Delete
'/calculations-formula-cheatsheet/',
[1027] Fix | Delete
],
[1028] Fix | Delete
'calculations' => [
[1029] Fix | Delete
'/docs/calculations-addon/',
[1030] Fix | Delete
'/docs/building-formulas-with-the-calculations-addon/',
[1031] Fix | Delete
'/calculations-formula-cheatsheet/',
[1032] Fix | Delete
],
[1033] Fix | Delete
'formula' => [
[1034] Fix | Delete
'/docs/calculations-addon/',
[1035] Fix | Delete
'/docs/building-formulas-with-the-calculations-addon/',
[1036] Fix | Delete
'/calculations-formula-cheatsheet/',
[1037] Fix | Delete
],
[1038] Fix | Delete
'conditional calculation' => [
[1039] Fix | Delete
'/docs/calculations-addon/',
[1040] Fix | Delete
'/docs/building-formulas-with-the-calculations-addon/',
[1041] Fix | Delete
'/calculations-formula-cheatsheet/',
[1042] Fix | Delete
],
[1043] Fix | Delete
'lead forms' => [
[1044] Fix | Delete
'/docs/lead-forms-addon/',
[1045] Fix | Delete
],
[1046] Fix | Delete
'form abandonment' => [
[1047] Fix | Delete
'/docs/how-to-install-and-use-form-abandonment-with-wpforms/',
[1048] Fix | Delete
],
[1049] Fix | Delete
'abandonment' => [
[1050] Fix | Delete
'/docs/how-to-install-and-use-form-abandonment-with-wpforms/',
[1051] Fix | Delete
],
[1052] Fix | Delete
'abandon' => [
[1053] Fix | Delete
'/docs/how-to-install-and-use-form-abandonment-with-wpforms/',
[1054] Fix | Delete
],
[1055] Fix | Delete
'lead capture' => [
[1056] Fix | Delete
'/docs/how-to-install-and-use-form-abandonment-with-wpforms/',
[1057] Fix | Delete
],
[1058] Fix | Delete
'post submissions' => [
[1059] Fix | Delete
'/docs/how-to-install-and-use-the-post-submissions-addon-in-wpforms/',
[1060] Fix | Delete
],
[1061] Fix | Delete
'guest post' => [
[1062] Fix | Delete
'/docs/how-to-install-and-use-the-post-submissions-addon-in-wpforms/',
[1063] Fix | Delete
],
[1064] Fix | Delete
'user submission' => [
[1065] Fix | Delete
'/docs/how-to-install-and-use-the-post-submissions-addon-in-wpforms/',
[1066] Fix | Delete
],
[1067] Fix | Delete
'blog' => [
[1068] Fix | Delete
'/docs/how-to-install-and-use-the-post-submissions-addon-in-wpforms/',
[1069] Fix | Delete
],
[1070] Fix | Delete
'post' => [
[1071] Fix | Delete
'/docs/how-to-install-and-use-the-post-submissions-addon-in-wpforms/',
[1072] Fix | Delete
],
[1073] Fix | Delete
'user registration' => [
[1074] Fix | Delete
'/docs/how-to-install-and-use-user-registration-addon-with-wpforms/',
[1075] Fix | Delete
'/docs/how-to-set-up-custom-user-meta-fields/',
[1076] Fix | Delete
],
[1077] Fix | Delete
'register' => [
[1078] Fix | Delete
'/docs/how-to-install-and-use-user-registration-addon-with-wpforms/',
[1079] Fix | Delete
'/docs/how-to-set-up-custom-user-meta-fields/',
[1080] Fix | Delete
],
[1081] Fix | Delete
'registration' => [
[1082] Fix | Delete
'/docs/how-to-install-and-use-user-registration-addon-with-wpforms/',
[1083] Fix | Delete
'/docs/how-to-set-up-custom-user-meta-fields/',
[1084] Fix | Delete
],
[1085] Fix | Delete
'user meta' => [
[1086] Fix | Delete
'/docs/how-to-install-and-use-user-registration-addon-with-wpforms/',
[1087] Fix | Delete
'/docs/how-to-set-up-custom-user-meta-fields/',
[1088] Fix | Delete
],
[1089] Fix | Delete
'user' => [
[1090] Fix | Delete
'/docs/how-to-install-and-use-user-registration-addon-with-wpforms/',
[1091] Fix | Delete
'/docs/how-to-set-up-custom-user-meta-fields/',
[1092] Fix | Delete
],
[1093] Fix | Delete
'surveys' => [
[1094] Fix | Delete
'/docs/how-to-install-and-use-the-surveys-and-polls-addon/',
[1095] Fix | Delete
],
[1096] Fix | Delete
'polls' => [
[1097] Fix | Delete
'/docs/how-to-install-and-use-the-surveys-and-polls-addon/',
[1098] Fix | Delete
],
[1099] Fix | Delete
'surveys and polls' => [
[1100] Fix | Delete
'/docs/how-to-install-and-use-the-surveys-and-polls-addon/',
[1101] Fix | Delete
],
[1102] Fix | Delete
'conversational forms' => [
[1103] Fix | Delete
'/docs/how-to-install-and-use-the-conversational-forms-addon/',
[1104] Fix | Delete
],
[1105] Fix | Delete
'conversational' => [
[1106] Fix | Delete
'/docs/how-to-install-and-use-the-conversational-forms-addon/',
[1107] Fix | Delete
],
[1108] Fix | Delete
'form locker' => [
[1109] Fix | Delete
'/docs/how-to-install-and-use-the-form-locker-addon-in-wpforms/',
[1110] Fix | Delete
'/developers/how-to-display-remaining-entry-limit-number/',
[1111] Fix | Delete
],
[1112] Fix | Delete
'password protection' => [
[1113] Fix | Delete
'/docs/how-to-install-and-use-the-form-locker-addon-in-wpforms/',
[1114] Fix | Delete
'/developers/how-to-display-remaining-entry-limit-number/',
[1115] Fix | Delete
],
[1116] Fix | Delete
'entry limit' => [
[1117] Fix | Delete
'/docs/how-to-install-and-use-the-form-locker-addon-in-wpforms/',
[1118] Fix | Delete
'/developers/how-to-display-remaining-entry-limit-number/',
[1119] Fix | Delete
],
[1120] Fix | Delete
'scheduling' => [
[1121] Fix | Delete
'/docs/how-to-install-and-use-the-form-locker-addon-in-wpforms/',
[1122] Fix | Delete
'/developers/how-to-display-remaining-entry-limit-number/',
[1123] Fix | Delete
],
[1124] Fix | Delete
'restrict access' => [
[1125] Fix | Delete
'/docs/how-to-install-and-use-the-form-locker-addon-in-wpforms/',
[1126] Fix | Delete
'/developers/how-to-display-remaining-entry-limit-number/',
[1127] Fix | Delete
],
[1128] Fix | Delete
'limit' => [
[1129] Fix | Delete
'/docs/how-to-install-and-use-the-form-locker-addon-in-wpforms/',
[1130] Fix | Delete
'/developers/how-to-display-remaining-entry-limit-number/',
[1131] Fix | Delete
],
[1132] Fix | Delete
'schedule' => [
[1133] Fix | Delete
'/docs/how-to-install-and-use-the-form-locker-addon-in-wpforms/',
[1134] Fix | Delete
'/developers/how-to-display-remaining-entry-limit-number/',
[1135] Fix | Delete
],
[1136] Fix | Delete
'restrict' => [
[1137] Fix | Delete
'/docs/how-to-install-and-use-the-form-locker-addon-in-wpforms/',
[1138] Fix | Delete
'/developers/how-to-display-remaining-entry-limit-number/',
[1139] Fix | Delete
],
[1140] Fix | Delete
'form pages' => [
[1141] Fix | Delete
'/docs/how-to-install-and-use-the-form-pages-addon/',
[1142] Fix | Delete
],
[1143] Fix | Delete
'save' => [
[1144] Fix | Delete
'/docs/how-to-install-and-use-the-save-and-resume-addon-with-wpforms/',
[1145] Fix | Delete
],
[1146] Fix | Delete
'resume' => [
[1147] Fix | Delete
'/docs/how-to-install-and-use-the-save-and-resume-addon-with-wpforms/',
[1148] Fix | Delete
],
[1149] Fix | Delete
'continue' => [
[1150] Fix | Delete
'/docs/how-to-install-and-use-the-save-and-resume-addon-with-wpforms/',
[1151] Fix | Delete
],
[1152] Fix | Delete
'save and resume' => [
[1153] Fix | Delete
'/docs/how-to-install-and-use-the-save-and-resume-addon-with-wpforms/',
[1154] Fix | Delete
],
[1155] Fix | Delete
'save and continue' => [
[1156] Fix | Delete
'/docs/how-to-install-and-use-the-save-and-resume-addon-with-wpforms/',
[1157] Fix | Delete
],
[1158] Fix | Delete
'webhooks' => [
[1159] Fix | Delete
'/docs/how-to-install-and-use-the-webhooks-addon-with-wpforms/',
[1160] Fix | Delete
],
[1161] Fix | Delete
'aweber' => [
[1162] Fix | Delete
'/docs/install-use-aweber-addon-wpforms/',
[1163] Fix | Delete
],
[1164] Fix | Delete
'campaign monitor' => [
[1165] Fix | Delete
'/docs/how-to-install-and-use-campaign-monitor-addon-with-wpforms/',
[1166] Fix | Delete
],
[1167] Fix | Delete
'constant contact' => [
[1168] Fix | Delete
'/docs/how-to-connect-constant-contact-with-wpforms/',
[1169] Fix | Delete
],
[1170] Fix | Delete
'convertkit' => [
[1171] Fix | Delete
'/docs/convertkit-addon/',
[1172] Fix | Delete
],
[1173] Fix | Delete
'drip' => [
[1174] Fix | Delete
'/docs/how-to-install-and-use-the-drip-addon-in-wpforms/',
[1175] Fix | Delete
],
[1176] Fix | Delete
'getresponse' => [
[1177] Fix | Delete
'/docs/how-to-install-and-use-getresponse-addon-with-wpforms/',
[1178] Fix | Delete
],
[1179] Fix | Delete
'google sheets' => [
[1180] Fix | Delete
'/docs/google-sheets-addon/',
[1181] Fix | Delete
'/docs/google-permissions/',
[1182] Fix | Delete
],
[1183] Fix | Delete
'mailchimp' => [
[1184] Fix | Delete
'/docs/install-use-mailchimp-addon-wpforms/',
[1185] Fix | Delete
],
[1186] Fix | Delete
'mailerlite' => [
[1187] Fix | Delete
'/docs/install-use-mailerlite-addon-wpforms/',
[1188] Fix | Delete
],
[1189] Fix | Delete
'zapier' => [
[1190] Fix | Delete
'/docs/how-to-install-and-use-zapier-addon-with-wpforms/',
[1191] Fix | Delete
],
[1192] Fix | Delete
'salesforce' => [
[1193] Fix | Delete
'/docs/how-to-install-and-use-the-salesforce-addon-with-wpforms/',
[1194] Fix | Delete
],
[1195] Fix | Delete
'sendinblue' => [
[1196] Fix | Delete
'/docs/how-to-install-and-use-the-sendinblue-addon-with-wpforms/',
[1197] Fix | Delete
],
[1198] Fix | Delete
'hubspot' => [
[1199] Fix | Delete
'/docs/how-to-install-and-use-the-hubspot-addon-in-wpforms/',
[1200] Fix | Delete
],
[1201] Fix | Delete
'integrate' => [
[1202] Fix | Delete
'/docs/how-to-install-and-use-zapier-addon-with-wpforms/',
[1203] Fix | Delete
'/docs/how-to-install-and-use-the-webhooks-addon-with-wpforms/',
[1204] Fix | Delete
'/docs/google-sheets-addon/',
[1205] Fix | Delete
],
[1206] Fix | Delete
'integration' => [
[1207] Fix | Delete
'/docs/how-to-install-and-use-zapier-addon-with-wpforms/',
[1208] Fix | Delete
'/docs/how-to-install-and-use-the-webhooks-addon-with-wpforms/',
[1209] Fix | Delete
'/docs/google-sheets-addon/',
[1210] Fix | Delete
],
[1211] Fix | Delete
'crm' => [
[1212] Fix | Delete
'/docs/how-to-install-and-use-zapier-addon-with-wpforms/',
[1213] Fix | Delete
'/docs/how-to-install-and-use-the-webhooks-addon-with-wpforms/',
[1214] Fix | Delete
],
[1215] Fix | Delete
'api' => [
[1216] Fix | Delete
'/docs/how-to-install-and-use-zapier-addon-with-wpforms/',
[1217] Fix | Delete
'/docs/how-to-install-and-use-the-webhooks-addon-with-wpforms/',
[1218] Fix | Delete
'/docs/google-sheets-addon/',
[1219] Fix | Delete
],
[1220] Fix | Delete
'paypal commerce' => [
[1221] Fix | Delete
'/docs/paypal-commerce-addon/',
[1222] Fix | Delete
'/docs/testing-payments-with-the-paypal-commerce-addon/',
[1223] Fix | Delete
],
[1224] Fix | Delete
'paypal standard' => [
[1225] Fix | Delete
'/docs/install-use-paypal-addon-wpforms/',
[1226] Fix | Delete
'/docs/how-to-test-paypal-payments-before-accepting-real-payments/',
[1227] Fix | Delete
'/docs/how-to-allow-users-to-choose-a-payment-method-on-your-form/',
[1228] Fix | Delete
],
[1229] Fix | Delete
'stripe' => [
[1230] Fix | Delete
'/docs/using-stripe-with-wpforms-lite/',
[1231] Fix | Delete
'/docs/how-to-install-and-use-the-stripe-addon-with-wpforms/',
[1232] Fix | Delete
'/docs/how-to-test-stripe-payments-on-your-site/',
[1233] Fix | Delete
],
[1234] Fix | Delete
'authorize' => [
[1235] Fix | Delete
'/docs/how-to-install-and-use-the-authorize-net-addon-with-wpforms/',
[1236] Fix | Delete
],
[1237] Fix | Delete
'authorize.net' => [
[1238] Fix | Delete
'/docs/how-to-install-and-use-the-authorize-net-addon-with-wpforms/',
[1239] Fix | Delete
],
[1240] Fix | Delete
'square' => [
[1241] Fix | Delete
'/docs/how-to-install-and-use-the-square-addon-with-wpforms/',
[1242] Fix | Delete
'/docs/how-to-test-square-payments-on-your-site/',
[1243] Fix | Delete
],
[1244] Fix | Delete
'revisions' => [
[1245] Fix | Delete
'/docs/how-to-use-form-revisions-in-wpforms/',
[1246] Fix | Delete
],
[1247] Fix | Delete
];
[1248] Fix | Delete
}
[1249] Fix | Delete
[1250] Fix | Delete
/**
[1251] Fix | Delete
* Get context (recommended) docs.
[1252] Fix | Delete
*
[1253] Fix | Delete
* @since 1.6.3
[1254] Fix | Delete
*
[1255] Fix | Delete
* @return array Docs recommended by search terms.
[1256] Fix | Delete
*/
[1257] Fix | Delete
public function get_context_docs() {
[1258] Fix | Delete
[1259] Fix | Delete
if ( empty( $this->docs ) ) {
[1260] Fix | Delete
return [];
[1261] Fix | Delete
}
[1262] Fix | Delete
[1263] Fix | Delete
$docs_links = $this->get_context_docs_links();
[1264] Fix | Delete
$docs = [];
[1265] Fix | Delete
[1266] Fix | Delete
foreach ( $docs_links as $word => $links ) {
[1267] Fix | Delete
$docs[ $word ] = $this->get_doc_ids( $links );
[1268] Fix | Delete
}
[1269] Fix | Delete
[1270] Fix | Delete
return $docs;
[1271] Fix | Delete
}
[1272] Fix | Delete
[1273] Fix | Delete
/**
[1274] Fix | Delete
* Get doc id.
[1275] Fix | Delete
*
[1276] Fix | Delete
* @since 1.6.3
[1277] Fix | Delete
* @deprecated 1.8.3
[1278] Fix | Delete
*
[1279] Fix | Delete
* @param string $link Absolute link to the doc without the domain part.
[1280] Fix | Delete
*
[1281] Fix | Delete
* @return array Array with doc id as element.
[1282] Fix | Delete
*/
[1283] Fix | Delete
public function get_doc_id( $link ) {
[1284] Fix | Delete
[1285] Fix | Delete
_deprecated_function( __METHOD__, '1.8.3 of the WPForms plugin', __CLASS__ . '::get_doc_id_int()' );
[1286] Fix | Delete
[1287] Fix | Delete
if ( empty( $this->docs ) ) {
[1288] Fix | Delete
return [];
[1289] Fix | Delete
}
[1290] Fix | Delete
[1291] Fix | Delete
$result = array_filter(
[1292] Fix | Delete
$this->docs,
[1293] Fix | Delete
static function( $doc ) use ( $link ) {
[1294] Fix | Delete
[1295] Fix | Delete
return ! empty( $doc['url'] ) && $doc['url'] === 'https://wpforms.com' . $link;
[1296] Fix | Delete
}
[1297] Fix | Delete
);
[1298] Fix | Delete
[1299] Fix | Delete
return array_keys( $result );
[1300] Fix | Delete
}
[1301] Fix | Delete
[1302] Fix | Delete
/**
[1303] Fix | Delete
* Get doc id.
[1304] Fix | Delete
*
[1305] Fix | Delete
* @since 1.8.3
[1306] Fix | Delete
*
[1307] Fix | Delete
* @param string $link Absolute link to the doc without the domain part.
[1308] Fix | Delete
*
[1309] Fix | Delete
* @return int Doc id.
[1310] Fix | Delete
*/
[1311] Fix | Delete
private function get_doc_id_int( $link ) {
[1312] Fix | Delete
[1313] Fix | Delete
if ( empty( $this->docs ) ) {
[1314] Fix | Delete
return 0;
[1315] Fix | Delete
}
[1316] Fix | Delete
[1317] Fix | Delete
foreach ( $this->docs as $id => $doc ) {
[1318] Fix | Delete
if ( ! empty( $doc['url'] ) && $doc['url'] === 'https://wpforms.com' . $link ) {
[1319] Fix | Delete
return $id;
[1320] Fix | Delete
}
[1321] Fix | Delete
}
[1322] Fix | Delete
[1323] Fix | Delete
return 0;
[1324] Fix | Delete
}
[1325] Fix | Delete
[1326] Fix | Delete
/**
[1327] Fix | Delete
* Get doc ids.
[1328] Fix | Delete
*
[1329] Fix | Delete
* @since 1.6.3
[1330] Fix | Delete
*
[1331] Fix | Delete
* @param array $links Array of the doc links.
[1332] Fix | Delete
*
[1333] Fix | Delete
* @return array Doc ids.
[1334] Fix | Delete
*/
[1335] Fix | Delete
public function get_doc_ids( $links ) {
[1336] Fix | Delete
[1337] Fix | Delete
$ids = [];
[1338] Fix | Delete
[1339] Fix | Delete
foreach ( $links as $link ) {
[1340] Fix | Delete
$ids[] = $this->get_doc_id_int( $link );
[1341] Fix | Delete
}
[1342] Fix | Delete
[1343] Fix | Delete
return $ids;
[1344] Fix | Delete
}
[1345] Fix | Delete
[1346] Fix | Delete
/**
[1347] Fix | Delete
* Output help modal markup.
[1348] Fix | Delete
*
[1349] Fix | Delete
* @since 1.6.3
[1350] Fix | Delete
*/
[1351] Fix | Delete
public function output() {
[1352] Fix | Delete
[1353] Fix | Delete
// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
[1354] Fix | Delete
echo wpforms_render(
[1355] Fix | Delete
'builder/help',
[1356] Fix | Delete
[
[1357] Fix | Delete
'settings' => [
[1358] Fix | Delete
'docs_url' => 'https://wpforms.com/docs/',
[1359] Fix | Delete
'support_ticket_url' => 'https://wpforms.com/account/support/',
[1360] Fix | Delete
'upgrade_url' => 'https://wpforms.com/pricing/',
[1361] Fix | Delete
],
[1362] Fix | Delete
],
[1363] Fix | Delete
true
[1364] Fix | Delete
);
[1365] Fix | Delete
}
[1366] Fix | Delete
}
[1367] Fix | Delete
[1368] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function