wpdesk / wp-wpdesk-rating-petition
1.6.2
2023-04-06 14:04 UTC
Requires
- php: >=7.0
- wpdesk/wp-notice: ^3.1
- wpdesk/wp-plugin-flow-common: ^1
Requires (Dev)
- 10up/wp_mock: *
- mockery/mockery: *
- phpunit/phpunit: <7
- squizlabs/php_codesniffer: ^3.0.2
- wimg/php-compatibility: ^8
- wp-coding-standards/wpcs: ^0.14.1
This package is auto-updated.
Last update: 2024-09-06 17:03:04 UTC
README
评分请愿书
这是一个WordPress库,可以用来鼓励插件用户在WordPress仓库中对其进行评论和评分。
要求
PHP 7.0或更高版本。
通过Composer安装
为了通过Composer安装绑定,请运行以下命令
composer require wpdesk/wp-wpdesk-rating-petition
示例用法
在运费区域使用它
function init_repository_rating() {
$time_tracker = new \WPDesk\RepositoryRating\TimeWatcher\ShippingMethodInstanceWatcher(
FedexShippingService::UNIQUE_ID,
'plugin_activation_flexible-shipping-fedex/flexible-shipping-fedex.php',
'28-11-2019',
FedexShippingMethod::class
);
$time_tracker->hooks();
( new \WPDesk\RepositoryRating\RatingPetitionNotice(
$time_tracker,
'flexible_shipping_fedex',
$this->plugin_info->get_plugin_name(),
'https://wpde.sk/fs-fedex-rate'
) )->hooks();
}
在运费方式屏幕上使用它
<?php
function init_repository_rating() {
$time_tracker = new \WPDesk\RepositoryRating\TimeWatcher\ShippingMethodGlobalSettingsWatcher(
'flexible_shipping_fedex'
);
$time_tracker->hooks();
( new \WPDesk\RepositoryRating\RatingPetitionNotice(
$time_tracker,
'flexible_shipping_fedex',
$this->plugin_info->get_plugin_name(),
'https://wpde.sk/fs-fedex-rate'
)
)->hooks();
}