定制 franmastromarino/wp-plugin-feedback 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

franmastromarino/wp-plugin-feedback

最新稳定版本:v1.0.9

Composer 安装命令:

composer create-project franmastromarino/wp-plugin-feedback

包简介

Process plugin feedback client.

README 文档

README

A WordPress plugin feedback collection system that shows a modal when deactivating plugins.

Features

  • Shows a feedback modal when a user tries to deactivate a plugin
  • Collects feedback with various deactivation reasons
  • Optional anonymous submissions
  • Prevents showing the modal again for plugins that have already been processed
  • Compatible with multiple plugins simultaneously

Installation

composer require quadlayers/wp-plugin-feedback

Usage

Include this code in your plugin's main PHP file:

if (class_exists('QuadLayers\\PluginFeedback\\Load')) {
    // Default usage (anonymous checkbox checked by default)
    \QuadLayers\PluginFeedback\Load::instance()->add(__FILE__);
    
    // OR customize options
    \QuadLayers\PluginFeedback\Load::instance()->add(__FILE__, [
        'anonymous_by_default' => false, // Set anonymous checkbox to unchecked by default
        'support_link' => 'https://your-plugin-domain.com/support/' // Add support link for users who encounter issues
    ]);
}

Available Options

Option Type Default Description
anonymous_by_default boolean true Whether the "Send anonymously" checkbox should be checked by default
support_link string '' URL to your support center or documentation that will be shown to users who select "not working" as their reason

License

GPL v2 or later

统计信息

  • 总下载量: 832
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: JavaScript

其他信息

  • 授权协议: Unknown
  • 更新时间: 2024-09-16