Linux 软件免费装
Banner图

Message Bridge for Contact Form 7 and VK

开发者 hokku
igortron
更新时间 2026年9月1日 05:24
PHP版本: 8.1 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

contact form 7 vk vkontakte

下载

0.1.3 0.1.4 1.0.0

详情介绍:

Message Bridge for Contact Form 7 and VK sends Contact Form 7 submissions to VKontakte users through a connected VK community. The number of VK recipients is not limited by the plugin: users subscribe to messages from the connected community, and the community acts as the notification bridge. To set up delivery:
  1. Create a VK community that will send the notifications.
  2. In the VK community settings, open Community management > Messages and enable community messages.
  3. Open Advanced > API usage, go to the LongPoll API tab, enable LongPoll API, and select API version 5.199 from the dropdown.
  4. Switch to Event types and enable Incoming messages.
  5. Open the Access keys tab and create a community access token with permission to use community messages.
  6. Open the Callback API tab and copy the group_id value.
  7. In the plugin interface, click Create Bot.
  8. Enter the Group ID, save the access token, or use the Copy PHP const controls to keep these values in PHP constants. Then wait for the bot status to become online. Configured and working bots are shown in blue.
  9. Ask each VK recipient to open the community messages and send start to the community.
  10. Approve or reject each subscription request in the plugin interface.
  11. Create a channel in the plugin interface to connect specific Contact Form 7 forms with the VK bot/community that should send their notifications.
Hooks Filter cf7vk_skip_delivery Return a truthy value to stop delivery for the current Contact Form 7 submission before channels and messages are resolved. Arguments: $skip (bool), $contact_form (WPCF7_ContactForm), $submission (WPCF7_Submission). Filter cf7vk_unfiltered_message Filters the Contact Form 7 mail body after mail-tag replacement and before VK-specific formatting. Arguments: $message (string), $submission (WPCF7_Submission). Filter cf7vk_prepared_message Filters the formatted VK notification text before it is passed to the linked delivery channels. Arguments: $prepared_message (string), $submission (WPCF7_Submission), $contact_form (WPCF7_ContactForm), $mail (array). Action cf7vk_channel_sendout Fires when a channel starts processing a prepared outgoing message, before bot and chat availability checks. Arguments: $channel (iTRON\cf7Vk\Channel), $message (string), $context (array). Action cf7vk_delivery_exception Fires when delivery relation lookup, chat status lookup, or VK transport delivery fails. The $chat argument can be null for relation lookup errors. Arguments: $exception (Throwable), $channel (iTRON\cf7Vk\Channel), $chat (?iTRON\cf7Vk\Chat), $context (array).

升级注意事项:

1.0.0 Major stability hardening release with safer migrations, redacted diagnostics, resilient VK delivery, admin UI error handling, and verified release gates.

更新日志:

1.0.0 0.1.4 0.1.3 0.1.2 0.1.1 0.1.0