开发者 | rashef |
---|---|
更新时间 | 2015年9月9日 00:11 |
捐献地址: | 去捐款 |
PHP版本: | 3.3 及以上 |
WordPress版本: | 4.3 |
版权: | GNU General Public License v3.0 |
版权网址: | 版权信息 |
[woofi orderby={title|sku|stock} sort={ASC|DESC} user_id={}]
For example:
[woofi]
will print the inventory, with the items ordered by title.
[woofi orderby=sku]
will print the inventory ordered by SKU.
[woofi orderby=sku sort=DESC]
will print the inventory sorted by SKU in reverse order.
[woofi user_id=27]
will print the inventory including only products created by the user with id 27.
This latest feature is also exclusive:
[woofi user_id=-33]
will print the inventory of all the products but the ones created by the user with id 33.
Be aware that every registered user will be able to view the inventory, regardless for the role, while unregistered users will get an error message, that you can customise in the dashboard.
Also note that the current version will not print any product marked in stock but with UNDEFINED quantity. A future version will consider this case.
Special thanks to Mike Jolley who provided the initial script.
/wp-content/plugins/
directoryPlease check that you are managing a stock for them and you defined a quantity.