PHPackages                             wpdesk/wp-wpdesk-rating-petition - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. wpdesk/wp-wpdesk-rating-petition

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

wpdesk/wp-wpdesk-rating-petition
================================

1.10.0(6mo ago)014.9kMITPHPPHP &gt;=7.4CI failing

Since Nov 29Pushed 1mo agoCompare

[ Source](https://github.com/WP-Desk/wp-wpdesk-rating-petition)[ Packagist](https://packagist.org/packages/wpdesk/wp-wpdesk-rating-petition)[ RSS](/packages/wpdesk-wp-wpdesk-rating-petition/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependencies (9)Versions (26)Used By (0)

[![Tests](https://github.com/WP-Desk/wp-wpdesk-rating-petition/actions/workflows/tests.yml/badge.svg)](https://github.com/WP-Desk/wp-wpdesk-rating-petition/actions/workflows/tests.yml)[![Latest Stable Version](https://camo.githubusercontent.com/de8066d8d67bb2c6eedab8173f37e82c96ec6e327cdfd22381a42a17b0ba20f5/68747470733a2f2f706f7365722e707567782e6f72672f77706465736b2f77702d77706465736b2d726174696e672d7065746974696f6e2f762f737461626c65)](https://packagist.org/packages/wpdesk/wp-wpdesk-rating-petition)[![Total Downloads](https://camo.githubusercontent.com/eda8dac9c9cd31593236f1e4134f68f5ef18db1a98789e51d9038813d5e9cd02/68747470733a2f2f706f7365722e707567782e6f72672f77706465736b2f77702d77706465736b2d726174696e672d7065746974696f6e2f646f776e6c6f616473)](https://packagist.org/packages/wpdesk/wp-wpdesk-rating-petition)[![License](https://camo.githubusercontent.com/9932e4f4e5e8adee947352334a182c9e4d20ca0d432512bdf53d4060042bea5a/68747470733a2f2f706f7365722e707567782e6f72672f77706465736b2f77702d77706465736b2d726174696e672d7065746974696f6e2f6c6963656e7365)](https://packagist.org/packages/wpdesk/wp-wpdesk-rating-petition)

Rating Petition
===============

[](#rating-petition)

A Composer library for WordPress plugins that can be used to encourage plugin users to review and rate a plugin in the WordPress.org repository.

The package provides:

- dismissible admin notices shown after a configured usage period,
- text-based rating petitions rendered on selected admin screens,
- popup rating petitions with AJAX feedback handling,
- display decision strategies for WordPress admin screens,
- WooCommerce shipping method watchers used to decide when a petition can be shown.

This package is a library, not a standalone WordPress plugin. It does not contain a plugin bootstrap file and should be initialized from a host plugin.

Requirements
------------

[](#requirements)

- PHP 7.4 or later.
- WordPress admin context.
- WooCommerce is required only when using the shipping method watchers or `ShippingMethodDisplayDecision`.

Runtime Composer dependencies are installed automatically:

- `wpdesk/wp-notice`
- `wpdesk/wp-plugin-flow-common`

No minimum WordPress or WooCommerce version is declared by this package.

Installation via Composer
-------------------------

[](#installation-via-composer)

In order to install the package via [Composer](https://getcomposer.org/) run the following command:

```
composer require wpdesk/wp-wpdesk-rating-petition
```

The package uses the `WPDesk\RepositoryRating\` PSR-4 namespace.

Admin notice usage
------------------

[](#admin-notice-usage)

All hookable classes must be registered by calling `hooks()` from the host plugin.

### Shipping zones area

[](#shipping-zones-area)

```
