Title: Lite Contact Form
Author: Beherit
Published: <strong>18 ພຶດສະພາ 2020</strong>
Last modified: 16 ກຸມພາ 2022

---

ຄົ້ນຫາປລັກອິນ

ປລັກອິນນີ້ **ຍັງບໍ່ທັນໄດ້ຮັບການທົດສອບກັບ WordPress 3 ເວີຊັນຫຼັກຫຼ້າສຸດ**. ມັນອາດຈະ
ບໍ່ໄດ້ຮັບການເບິ່ງແຍງ ຫຼື ສະໜັບສະໜູນອີກຕໍ່ໄປ ແລະ ອາດມີບັນຫາການເຮັດວຽກຮ່ວມກັນເມື່ອ
ໃຊ້ກັບ WordPress ເວີຊັນທີ່ໃໝ່ກວ່າ.

![](https://ps.w.org/lite-contact-form/assets/icon.svg?rev=2309289)

# Lite Contact Form

 ໂດຍ [Beherit](https://profiles.wordpress.org/beherit/)

[ດາວໂຫຼດ](https://downloads.wordpress.org/plugin/lite-contact-form.1.1.6.zip)

 * [ລາຍລອຽດ](https://lo.wordpress.org/plugins/lite-contact-form/#description)
 * [ການຣີວິວ](https://lo.wordpress.org/plugins/lite-contact-form/#reviews)
 *  [ການຕິດຕັ້ງ](https://lo.wordpress.org/plugins/lite-contact-form/#installation)
 * [ການພັດທະນາ](https://lo.wordpress.org/plugins/lite-contact-form/#developers)

 [ການຊ່ວຍເຫຼືອ](https://wordpress.org/support/plugin/lite-contact-form/)

## ຄຳອະທິບາຍ

Lightweight and simple contact form with no additional user-unfriendly options. 
You can add the contact form to any page with a shortcode `[contact_form]`. Plugin
is integrated with plugin [Akismet](https://wordpress.org/plugins/akismet/) and 
[GreCAPTCHA](https://wordpress.org/plugins/grecaptcha/) which protect against spam.

## ການຕິດຕັ້ງ

In most cases you can install automatically from plugins page in admin panel.

However, if you want to install it manually, follow these steps:

 1. Download the plugin and unzip the archive.
 2. Upload the entire `lite-contact-form` folder to the `/wp-content/plugins/` directory.
 3. Activate the plugin through the Plugins menu in WordPress.

## ຄຳຖາມທີ່ພົບເລື້ອຍ

### How to change sender and recipient email address?

By default, the plugin uses the administrator’s email address which is set in the
WordPress general settings. It can be changed by adding attributes to the shortcode.

    ```
    [contact_form sender="noreply@domain.tld" recipient="Blog Admin <admin@domain.tld>"]
    ```

### How to protect contact form against spam?

The plugin has no built-in spam protection features, but is integrated with other
plugins which do that job in the best way. You can use for it plugin [Akismet](https://wordpress.org/plugins/akismet/)
or/and [GreCAPTCHA](https://wordpress.org/plugins/grecaptcha/).

### Will this plugin work with cache plugins?

Yes. The plugin was designed to work with cache plugins. It uses lightweight Vanilla
JS script and WordPress REST API to process requests.

### How to change the style of the contact form?

By default, the fields description is displayed in placeholders, but you can change
it to labels.

    ```
    [contact_form style="labels"]
    ```

If you want only to change CSS style just add selectors to file style.css in active
theme or create new file lite-contact-form.css in active theme.

### How to add custom fields?

The plugin is simple and there are no settings to add custom fields, you need to
add PHP code e.g. in functions.php in the active theme.

Use the add_filter function to add a custom field, there are three filters that 
you can use.

    ```
    function custom_fields_before() {
        return '<p class="lcf-validate">
            <input type="text" name="test" placeholder="Field with JS validation">
            <span class="lcf-tip"></span>
        </p>';
    }
    add_filter('lcf_before_fields', 'custom_fields_before');

    function custom_fields_before_message() {
        return '<p>
            <input type="text" name="test" placeholder="Field without JS validation">
            <span class="lcf-tip"></span>
        </p>';
    }
    add_filter('lcf_before_message_field', 'custom_fields_before_message');

    function custom_fields_after() {
        return 'some html code';
    }
    add_filter('lcf_after_fields', 'custom_fields_after');
    ```

You can validates the entire request or only your field.

    ```
    function custom_field_validate($result, $field, $value) {
        if(empty($value)) {
            $result['status'] = 'blocked';
            $result['fields'][] = array('field' => $field, 'message' => 'This field is required.');
        }
        return $result;
    }
    add_filter('lcf_validate_field_name', 'custom_field_validate', 10, 3);

    function custom_validate_request($result, $fields) {
        if(...) {
            $result['status'] = 'error';
            $result['message'] = 'There was an error trying to send your message.';
        }
        return $result;
    }
    add_filter('lcf_validate', 'custom_validate_request', 10, 2);
    ```

There are two more filters that you can use to change the email subject and the 
message body.

    ```
    function custom_mail_subject($subject, $fields) {
        return $subject;
    }
    add_filter('lcf_mail_subject', 'custom_mail_subject', 10, 2);

    function custom_mail_message($message, $fields) {
        return $message;
    }
    add_filter('lcf_mail_message', 'custom_mail_message', 10, 2);
    ```

## ການຣີວິວ

![](https://secure.gravatar.com/avatar/cc0b0a6040968502ed90c0c75bdb8c9b25dd01b7bb75ba48730d35e70a8ad61a?
s=60&d=retro&r=g)

### 󠀁[Excellent](https://wordpress.org/support/topic/excellent-9305/)󠁿

 [Phll](https://profiles.wordpress.org/phll/) 20 ມິຖຸນາ 2020

Simple, lightweight, apparently secure (need more time to be sure), and free! + 
Code can be edited easily to fit custom needs. All I needed. Many thanks to the 
dev!

 [ ອ່ານການຣີວິວທັງໝົດ 1 ລາຍການ ](https://wordpress.org/support/plugin/lite-contact-form/reviews/)

## ຜູ້ຮ່ວມພັດທະນາ ແລະ ຜູ້ພັດທະນາ

“Lite Contact Form” ແມ່ນຊອຟແວໂອເພັນຊອດ (Open Source). ບຸກຄົນຕໍ່ໄປນີ້ໄດ້ມີສ່ວນຮ່ວມ
ໃນການພັດທະນາປລັກອິນນີ້.

ຜູ້ຮ່ວມພັດທະນາ

 *   [ Beherit ](https://profiles.wordpress.org/beherit/)

“Lite Contact Form” ໄດ້ຖືກແປເປັນ 1 ພາສາທ້ອງຖິ່ນ. ຂໍຂອບໃຈ [ທີມງານຜູ້ແປ](https://translate.wordpress.org/projects/wp-plugins/lite-contact-form/contributors)
ສຳລັບການປະກອບສ່ວນຂອງເຂົາເຈົ້າ.

[ແປ “Lite Contact Form” ເປັນພາສາຂອງເຈົ້າ.](https://translate.wordpress.org/projects/wp-plugins/lite-contact-form)

### ສົນໃຈຮ່ວມພັດທະນາບໍ່?

[ເບິ່ງລະຫັດ](https://plugins.trac.wordpress.org/browser/lite-contact-form/), ກວດເບິ່ງ
[ຄັງເກັບ SVN](https://plugins.svn.wordpress.org/lite-contact-form/), ຫຼື ຕິດຕາມ 
[ບັນທຶກການພັດທະນາ](https://plugins.trac.wordpress.org/log/lite-contact-form/) ຜ່ານ
[RSS](https://plugins.trac.wordpress.org/log/lite-contact-form/?limit=100&mode=stop_on_copy&format=rss).

## ບັນທຶກການປ່ຽນແປງ

#### 1.1.6 (2022-02-16)

 * Minor improvements.

#### 1.1.4 (2020-08-18)

 * Fixed Akismet API call.

#### 1.1.2 (2020-08-05)

 * Minor improvements.

#### 1.1 (2020-05-19)

 * Added a style attribute for shortcode.
 * Enqueue CSS stylesheet from active theme.

#### 1.0 (2020-05-18)

 * Initial release.

## ຂໍ້ມູນກຳກັບ (Meta)

 *  ເວີຊັນ **1.1.6**
 *  ອັບເດດຫຼ້າສຸດເມື່ອ **4 ປີ ທີ່ຜ່ານມາ** ທີ່ຜ່ານມາ
 *  ການຕິດຕັ້ງທີ່ໃຊ້ງານຢູ່ **100+**
 *  ເວີຊັນ WordPress ** 4.6 ຫຼື ສູງກວ່າ **
 *  ທົດສອບເຖິງເວີຊັນ **5.9.13**
 *  ເວີຊັນ PHP ** 7.0 ຫຼື ສູງກວ່າ **
 *  ພາສາ
 * [English (US)](https://wordpress.org/plugins/lite-contact-form/) ແລະ [Polish](https://pl.wordpress.org/plugins/lite-contact-form/).
 *  [ແປເປັນພາສາຂອງເຈົ້າ](https://translate.wordpress.org/projects/wp-plugins/lite-contact-form)
 * ແທັກ
 * [contact](https://lo.wordpress.org/plugins/tags/contact/)[contact form](https://lo.wordpress.org/plugins/tags/contact-form/)
   [email](https://lo.wordpress.org/plugins/tags/email/)[feedback](https://lo.wordpress.org/plugins/tags/feedback/)
   [feedback form](https://lo.wordpress.org/plugins/tags/feedback-form/)
 *  [ມຸມມອງຂັ້ນສູງ](https://lo.wordpress.org/plugins/lite-contact-form/advanced/)

## ການໃຫ້ຄະແນນ

 5 ຈາກທັງໝົດ 5 ດາວ.

 *  [  ການວິຈານ 5 ດາວ ຈຳນວນ 1 ລາຍການ     ](https://wordpress.org/support/plugin/lite-contact-form/reviews/?filter=5)
 *  [  ການວິຈານ 4 ດາວ ຈຳນວນ 0 ລາຍການ     ](https://wordpress.org/support/plugin/lite-contact-form/reviews/?filter=4)
 *  [  ການວິຈານ 3 ດາວ ຈຳນວນ 0 ລາຍການ     ](https://wordpress.org/support/plugin/lite-contact-form/reviews/?filter=3)
 *  [  ການວິຈານ 2 ດາວ ຈຳນວນ 0 ລາຍການ     ](https://wordpress.org/support/plugin/lite-contact-form/reviews/?filter=2)
 *  [  ການວິຈານ 1 ດາວ ຈຳນວນ 0 ລາຍການ     ](https://wordpress.org/support/plugin/lite-contact-form/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/lite-contact-form/reviews/#new-post)

[ເບິ່ງ ຄຳຄິດເຫັນ ທັງໝົດ](https://wordpress.org/support/plugin/lite-contact-form/reviews/)

## ຜູ້ຮ່ວມພັດທະນາ

 *   [ Beherit ](https://profiles.wordpress.org/beherit/)

## ການຊ່ວຍເຫຼືອ

ມີຄຳຖາມ ຫຼື ຕ້ອງການຄວາມຊ່ວຍເຫຼືອບໍ່?

 [ເບິ່ງຟໍຣັມການຊ່ວຍເຫຼືອ](https://wordpress.org/support/plugin/lite-contact-form/)