Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/itthinx/groups-wc-completed-customer
This plugin adds customers to the Customer group upon their first completed order.
https://github.com/itthinx/groups-wc-completed-customer
Last synced: about 1 month ago
JSON representation
This plugin adds customers to the Customer group upon their first completed order.
- Host: GitHub
- URL: https://github.com/itthinx/groups-wc-completed-customer
- Owner: itthinx
- Created: 2017-08-18T12:37:21.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-08-18T13:14:15.000Z (over 7 years ago)
- Last Synced: 2024-08-02T11:19:19.410Z (4 months ago)
- Language: PHP
- Size: 2.93 KB
- Stars: 3
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: readme.txt
Awesome Lists containing this project
- awesome-woocommerce - Groups WooCommerce Completed Customer - This plugin adds customers to the Customer group upon their first completed order. (Handy Code Snippets and Plugins)
README
=== Groups WooCommerce Completed Customer ===
Contributors: itthinx
Donate link: http://www.itthinx.com/plugins/woocommerce-product-generator/
Tags: automatic, customer, customers, example, group, groups, order, orders, woocommerce
Requires at least: 4.0
Tested up to: 4.8.1
Stable tag: 1.0.0
License: GPLv3This plugin adds customers to the Customer group upon their first completed order.
== Description ==
This plugin adds customers to the Customer group upon their first completed order.
The group is created on the fly (also if an alternative group as explained below is used).An alternative group can be indicated by implementing the `groups_wc_completed_customer_group_name` filter.
Here is an example, which will add the customer with a completed order to the 'Example' group instead of the
'Customer' group. You can use the following code in your theme's `functions.php`:add_filter( 'groups_wc_completed_customer_group_name', 'my_groups_wc_completed_customer_group_name' );
function my_groups_wc_completed_customer_group_name( $name ) {
return 'Example';
}Upon plugin activation, the user-group assignment is done automatically when an order adopts the status 'completed'.
== Installation ==
Log in as an administrator and go to Plugins > Add New. Upload the plugin zip file and activate it.
The plugin does not provide any admin screens.Also see [Manual Plugin Installation](http://codex.wordpress.org/Managing_Plugins#Manual_Plugin_Installation).
== Screenshots ==
There are no relevant screenshots.
== Changelog ==
= 1.0.0 =
* Initial release.== Upgrade Notice ==
Initial release.