wpdesk/wp-wpdesk-rating-petition
最新稳定版本:1.9.0
Composer 安装命令:
composer require wpdesk/wp-wpdesk-rating-petition
包简介
README 文档
README
Rating Petition
A WordPress library which can be used to encourage the plugin users to review and rate it in WordPress repository.
Requirements
PHP 7.0 or later.
Installation via Composer
In order to install the bindings via Composer run the following command:
composer require wpdesk/wp-wpdesk-rating-petition
Example usage
To use it in the shipping zones area:
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();
}
To use it on the shipping method screen:
<?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();
}
统计信息
- 总下载量: 14.87k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-11-29