Vextor Quick Form JS

Àpèjúwe

This plugin allows you to make your email forms simpler and easier to use
Form processing is done via JavaScript, protecting them from unnecessary spam from bots

Donations

Donate link

https://boosty.to/vextor/donate

Ìgbéwọlẹ̀

  1. Upload the vextor-quick-form-js folder to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. In the file wp-config.php add variables:

    define(‘VEXTOR_RECIPIENT_EMAIL’, ‘recipient-email@example.com’);
    define(‘VEXTOR_SENDER_NAME’, ‘Sender’);
    define(‘VEXTOR_SENDER_EMAIL’, ‘sender-email@example.com’);

FAQ

How to use ?

  1. Instead of the standard form tag, you can use a div with the class vextor-form-js
  2. Add a button with the data-vextor-send-button attribute inside this div, which will act as a trigger for submitting the form

Example:

<div class="vextor-form-js">
    <input type="text" name="name" required>
    <input type="hidden" name="subject" value="My Subject">
    <input type="file" name="files[]">
    <button data-vextor-send-button>Send</button>
</div>

Are there any hooks or filters?

Yes, there are several filters and hooks

Filters:
* add_filter(‘vextor_form_recipient_email’, $email) // Use it to redefine the recipientÌtumọ̀ Yorùbá: ’s Email address
* add_filter(‘vextor_form_translations’, $translations) // Use it to replace keys from the form with clear names

Example:

add_filter('vextor_form_translations', 'my_theme_custom_translations');

function my_theme_custom_translations(array $translations): array
{
    $translations['subject'] = 'My subject';

    return $translations;
}

Actions:
* add_action(‘vextor_before_form_send’, $data)
* add_action(‘vextor_form_sent’, $data)
* add_action(‘vextor_form_error’, $data)

There are also JS events:
* vextorformjs:prevalidation, {form, button}
* vextorformjs:postvalidation, {form, button}
* vextorformjs:sending, {form, button}
* vextorformjs:error, {form, button, response}
* vextorformjs:sent, {form, button, response}

Example:

document.addEventListener('vextorformjs:prevalidation', (event) => {
    const { form, button } = event.detail;

    console.log('Form:', form);
    console.log('Button:', button);
});

Àwọn àgbéyẹ̀wò

Kò sí àwọn àgbéyẹ̀wò fún plugin yìí.

Àwọn Olùkópa & Olùgbéejáde

“Vextor Quick Form JS” jẹ́ ètò ìṣàmúlò orísun ṣíṣí sílẹ̀. Àwọn ènìyàn wọ̀nyí ti ṣe ìkópa sí plugin yìí.

Àwọn Olùkópa

Túmọ̀ “Vextor Quick Form JS” sí èdè rẹ.

Ṣe o nífẹ̀ẹ́ sí ìdàgbàsókè?

Ṣàwárí koodu, ṣàyẹ̀wò ibi ìpamọ́ SVN, tàbí ṣe àgbékalẹ̀ sí àkọsílẹ̀ ìdàgbàsókè nípasẹ̀ RSS.

Àkọsílẹ̀ àwọn àyípadà

1.0.3 (23.05.2025)

  • Added data cleaning

1.0.2 (22.05.2025)

  • Change name

1.0.1 (22.05.2025)

  • Change slug

1.0.0 (22.05.2025)

  • Init plugin