st-submissions-addon-in-wpforms/',
],
'blog' => [
'/docs/how-to-install-and-use-the-post-submissions-addon-in-wpforms/',
],
'post' => [
'/docs/how-to-install-and-use-the-post-submissions-addon-in-wpforms/',
],
'user registration' => [
'/docs/how-to-install-and-use-user-registration-addon-with-wpforms/',
'/docs/how-to-set-up-custom-user-meta-fields/',
],
'register' => [
'/docs/how-to-install-and-use-user-registration-addon-with-wpforms/',
'/docs/how-to-set-up-custom-user-meta-fields/',
],
'registration' => [
'/docs/how-to-install-and-use-user-registration-addon-with-wpforms/',
'/docs/how-to-set-up-custom-user-meta-fields/',
],
'user meta' => [
'/docs/how-to-install-and-use-user-registration-addon-with-wpforms/',
'/docs/how-to-set-up-custom-user-meta-fields/',
],
'user' => [
'/docs/how-to-install-and-use-user-registration-addon-with-wpforms/',
'/docs/how-to-set-up-custom-user-meta-fields/',
],
'surveys' => [
'/docs/how-to-install-and-use-the-surveys-and-polls-addon/',
],
'polls' => [
'/docs/how-to-install-and-use-the-surveys-and-polls-addon/',
],
'surveys and polls' => [
'/docs/how-to-install-and-use-the-surveys-and-polls-addon/',
],
'conversational forms' => [
'/docs/how-to-install-and-use-the-conversational-forms-addon/',
],
'conversational' => [
'/docs/how-to-install-and-use-the-conversational-forms-addon/',
],
'form locker' => [
'/docs/how-to-install-and-use-the-form-locker-addon-in-wpforms/',
'/developers/how-to-display-remaining-entry-limit-number/',
],
'password protection' => [
'/docs/how-to-install-and-use-the-form-locker-addon-in-wpforms/',
'/developers/how-to-display-remaining-entry-limit-number/',
],
'entry limit' => [
'/docs/how-to-install-and-use-the-form-locker-addon-in-wpforms/',
'/developers/how-to-display-remaining-entry-limit-number/',
],
'scheduling' => [
'/docs/how-to-install-and-use-the-form-locker-addon-in-wpforms/',
'/developers/how-to-display-remaining-entry-limit-number/',
],
'restrict access' => [
'/docs/how-to-install-and-use-the-form-locker-addon-in-wpforms/',
'/developers/how-to-display-remaining-entry-limit-number/',
],
'limit' => [
'/docs/how-to-install-and-use-the-form-locker-addon-in-wpforms/',
'/developers/how-to-display-remaining-entry-limit-number/',
],
'schedule' => [
'/docs/how-to-install-and-use-the-form-locker-addon-in-wpforms/',
'/developers/how-to-display-remaining-entry-limit-number/',
],
'restrict' => [
'/docs/how-to-install-and-use-the-form-locker-addon-in-wpforms/',
'/developers/how-to-display-remaining-entry-limit-number/',
],
'form pages' => [
'/docs/how-to-install-and-use-the-form-pages-addon/',
],
'save' => [
'/docs/how-to-install-and-use-the-save-and-resume-addon-with-wpforms/',
],
'resume' => [
'/docs/how-to-install-and-use-the-save-and-resume-addon-with-wpforms/',
],
'continue' => [
'/docs/how-to-install-and-use-the-save-and-resume-addon-with-wpforms/',
],
'save and resume' => [
'/docs/how-to-install-and-use-the-save-and-resume-addon-with-wpforms/',
],
'save and continue' => [
'/docs/how-to-install-and-use-the-save-and-resume-addon-with-wpforms/',
],
'webhooks' => [
'/docs/how-to-install-and-use-the-webhooks-addon-with-wpforms/',
],
'aweber' => [
'/docs/install-use-aweber-addon-wpforms/',
],
'campaign monitor' => [
'/docs/how-to-install-and-use-campaign-monitor-addon-with-wpforms/',
],
'constant contact' => [
'/docs/how-to-connect-constant-contact-with-wpforms/',
],
'convertkit' => [
'/docs/convertkit-addon/',
],
'drip' => [
'/docs/how-to-install-and-use-the-drip-addon-in-wpforms/',
],
'dropbox' => [
'/docs/dropbox-addon/',
],
'google-drive' => [
'/docs/google-drive-addon/',
],
'getresponse' => [
'/docs/how-to-install-and-use-getresponse-addon-with-wpforms/',
],
'google sheets' => [
'/docs/google-sheets-addon/',
'/docs/google-permissions/',
],
'mailchimp' => [
'/docs/install-use-mailchimp-addon-wpforms/',
],
'mailerlite' => [
'/docs/install-use-mailerlite-addon-wpforms/',
],
'mailpoet' => [
'/docs/mailpoet-addon/',
],
'make' => [
'/docs/make-addon/',
],
'zapier' => [
'/docs/how-to-install-and-use-zapier-addon-with-wpforms/',
],
'pipedrive' => [
'/docs/pipedrive-addon/',
],
'salesforce' => [
'/docs/how-to-install-and-use-the-salesforce-addon-with-wpforms/',
],
'sendinblue' => [
'/docs/how-to-install-and-use-the-sendinblue-addon-with-wpforms/',
],
'slack' => [
'/docs/slack-addon/',
],
'hubspot' => [
'/docs/how-to-install-and-use-the-hubspot-addon-in-wpforms/',
],
'twilio' => [
'/docs/twilio-addon/',
],
'integrate' => [
'/docs/how-to-install-and-use-zapier-addon-with-wpforms/',
'/docs/how-to-install-and-use-the-webhooks-addon-with-wpforms/',
'/docs/google-sheets-addon/',
],
'integration' => [
'/docs/how-to-install-and-use-zapier-addon-with-wpforms/',
'/docs/how-to-install-and-use-the-webhooks-addon-with-wpforms/',
'/docs/google-sheets-addon/',
],
'crm' => [
'/docs/how-to-install-and-use-zapier-addon-with-wpforms/',
'/docs/how-to-install-and-use-the-webhooks-addon-with-wpforms/',
],
'api' => [
'/docs/how-to-install-and-use-zapier-addon-with-wpforms/',
'/docs/how-to-install-and-use-the-webhooks-addon-with-wpforms/',
'/docs/google-sheets-addon/',
],
'paypal commerce' => [
'/docs/paypal-commerce-addon/',
'/docs/testing-payments-with-the-paypal-commerce-addon/',
],
'paypal standard' => [
'/docs/install-use-paypal-addon-wpforms/',
'/docs/how-to-test-paypal-payments-before-accepting-real-payments/',
'/docs/how-to-allow-users-to-choose-a-payment-method-on-your-form/',
],
'stripe' => [
'/docs/using-stripe-with-wpforms-lite/',
'/docs/how-to-install-and-use-the-stripe-addon-with-wpforms/',
'/docs/how-to-test-stripe-payments-on-your-site/',
],
'authorize' => [
'/docs/how-to-install-and-use-the-authorize-net-addon-with-wpforms/',
],
'authorize.net' => [
'/docs/how-to-install-and-use-the-authorize-net-addon-with-wpforms/',
],
'square' => [
'/docs/how-to-install-and-use-the-square-addon-with-wpforms/',
'/docs/how-to-test-square-payments-on-your-site/',
],
'revisions' => [
'/docs/how-to-use-form-revisions-in-wpforms/',
],
'ai' => [
'/docs/generating-form-choices-with-wpforms-ai/',
'/docs/generating-forms-with-wpforms-ai/',
],
];
}
/**
* Get context (recommended) docs.
*
* @since 1.6.3
*
* @return array Docs recommended by search terms.
*/
public function get_context_docs() {
if ( empty( $this->docs ) ) {
return [];
}
$docs_links = $this->get_context_docs_links();
$docs = [];
foreach ( $docs_links as $word => $links ) {
$docs[ $word ] = $this->get_doc_ids( $links );
}
return $docs;
}
/**
* Get doc id.
*
* @since 1.6.3
* @deprecated 1.8.3
*
* @param string $link Absolute link to the doc without the domain part.
*
* @return array Array with doc id as element.
*/
public function get_doc_id( $link ) {
_deprecated_function( __METHOD__, '1.8.3 of the WPForms plugin', __CLASS__ . '::get_doc_id_int()' );
if ( empty( $this->docs ) ) {
return [];
}
$result = array_filter(
$this->docs,
static function( $doc ) use ( $link ) {
return ! empty( $doc['url'] ) && $doc['url'] === 'https://wpforms.com' . $link;
}
);
return array_keys( $result );
}
/**
* Get doc id.
*
* @since 1.8.3
*
* @param string $link Absolute link to the doc without the domain part.
*
* @return int Doc id.
*/
private function get_doc_id_int( $link ) {
if ( empty( $this->docs ) ) {
return 0;
}
foreach ( $this->docs as $id => $doc ) {
if ( ! empty( $doc['url'] ) && $doc['url'] === 'https://wpforms.com' . $link ) {
return $id;
}
}
return 0;
}
/**
* Get doc ids.
*
* @since 1.6.3
*
* @param array $links Array of the doc links.
*
* @return array Doc ids.
*/
public function get_doc_ids( $links ) {
$ids = [];
foreach ( $links as $link ) {
$ids[] = $this->get_doc_id_int( $link );
}
return $ids;
}
/**
* Output help modal markup.
*
* @since 1.6.3
*/
public function output() {
// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
echo wpforms_render(
'builder/help',
[
'settings' => [
'docs_url' => 'https://wpforms.com/docs/',
'support_ticket_url' => 'https://wpforms.com/account/support/',
'upgrade_url' => 'https://wpforms.com/pricing/',
],
],
true
);
}
}
Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 62914592 bytes) in /home/yoldasm2/public_html/wp-includes/class-wpdb.php on line 1757