PHPackages                             inpsyde/top-selling-products - 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. inpsyde/top-selling-products

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

inpsyde/top-selling-products
============================

Lightweight package providing a pre-configured, yet filterable WP\_Query extension for top selling products.

1.0.1(5y ago)11.0kGPL-2.0-or-laterPHPPHP &gt;=5.4

Since Jul 18Pushed 5y ago1 watchersCompare

[ Source](https://github.com/inpsyde/top-selling-products)[ Packagist](https://packagist.org/packages/inpsyde/top-selling-products)[ RSS](/packages/inpsyde-top-selling-products/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (2)Dependencies (3)Versions (3)Used By (0)

Top Selling Products
====================

[](#top-selling-products)

[![Latest Stable Version](https://camo.githubusercontent.com/16cd25baf404122419ff385c2c6c613b5c1cdac91a5314f14eaa46b75a4efedc/68747470733a2f2f706f7365722e707567782e6f72672f696e70737964652f746f702d73656c6c696e672d70726f64756374732f76657273696f6e)](https://packagist.org/packages/inpsyde/top-selling-products)[![Project Status](https://camo.githubusercontent.com/5b5a2250da48f45495a817a4bcdabb5d101fff298acebe00a55a52815b7119ed/687474703a2f2f6f70656e736f757263652e626f782e636f6d2f6261646765732f6163746976652e737667)](http://opensource.box.com/badges)[![Build Status](https://camo.githubusercontent.com/03c7d73e8956dbdf37117bea17bd2d946c12f7a782493a9dbfb2b999bff57cab/68747470733a2f2f7472617669732d63692e6f72672f696e70737964652f746f702d73656c6c696e672d70726f64756374732e7376673f6272616e63683d6d6173746572)](http://travis-ci.org/inpsyde/top-selling-products)[![Total Downloads](https://camo.githubusercontent.com/9ce711c3c39bd591333da5e102ae045193a86830186a60c3a682bfad25f4f2d3/68747470733a2f2f706f7365722e707567782e6f72672f696e70737964652f746f702d73656c6c696e672d70726f64756374732f646f776e6c6f616473)](https://packagist.org/packages/inpsyde/top-selling-products)

> Lightweight package providing a pre-configured, yet filterable `WP_Query` extension for top selling products.

UNMAINTAINED
------------

[](#unmaintained)

*NOTE:* This repository is no longer maintained.

Introduction
------------

[](#introduction)

This package comes with a `WP_Query` extension that allows for querying *top selling* products. By default, there is **no** definition as to when a product is a top seller, though. This can either be done by passing according query arguments, or filtering the given or default ones.

Installation
------------

[](#installation)

```
$ composer require inpsyde/top-selling-products:~1.0

```

Run the tests:

```
$ vendor/bin/phpunit

```

### Requirements

[](#requirements)

This package requires PHP 5.4 or higher.

Usage
-----

[](#usage)

### Filters

[](#filters)

#### `inpsyde_top_selling_products.query_args`

[](#inpsyde_top_selling_productsquery_args)

This hook allows to filter the query arguments.

**Arguments:**

- `array` `$args`: Query arguments.

```
