ignitekit/wp-deactivate-feedback-client

收集插件停用时网站所有者的反馈。

1.0.2 2024-09-24 08:21 UTC

This package is auto-updated.

Last update: 2024-09-24 08:22:22 UTC


README

WordPress 收集插件停用反馈的简单易用包。

该库允许开发者设置在插件页面上显示的反馈表单。

plugin-deactivate

快速开始

1. 如何安装

composer require ignitekit/wp-deactivate-feedback-client

2. 如何使用

基本来说,在你的插件文件中,你需要创建库的实例,如下所示

try {
	new \IgniteKit\WP\DeactivateFeedbackClient\Main( [
		'name'        => 'Digital License Manager',
		'slug'        => 'digital-license-manager',
		'version'     => YOUR_PLUGIN_VERSION,
		'prefix'      => 'dlm_',
		'public_path' => str_replace( '/', DIRECTORY_SEPARATOR, dirname( __FILE__ ) . '/vendor/ignitekit/wp-deactivate-feedback-client/public/' ),
		'public_url'  => rtrim( plugin_dir_url( __FILE__ ), '/' ) . '/vendor/ignitekit/wp-deactivate-feedback-client/public/',
		'api_url'     => 'https://yoursite.com/wp-json/deactivate-feedback/v1/feedback',
		'data'        => [ 'website', 'system', 'contact' ],
	] );
} catch ( \Exception $e ) {

}

3. 收集数据

要收集数据,你可以使用我们的插件 WP Deactivate Feedback

[开始使用]

贡献

欢迎贡献。如果你有任何想法或发现了错误,请提交一个拉取请求或问题。

许可证

Copyright (C) 2024  Darko Gjorgjijoski. All Rights Reserved.
Copyright (C) 2024  IDEOLOGIX MEDIA DOOEL. All Rights Reserved.
Copyright (C) 2024  IgniteKit. All Rights Reserved.

WP Deactivate Feedback is free software; you can redistribute it
and/or modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

WP Deactivate Feedback program is distributed in the hope that it
will be useful,but WITHOUT ANY WARRANTY; without even the implied
warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License v3
along with this program;

If not, see: https://gnu.ac.cn/licenses/gpl-2.0.en.html

Code written, maintained by Darko Gjorgjijoski (https://darkog.com)