| 1 |
<?php |
| 2 |
|
| 3 |
namespace LWS\WOOREWARDS\PointsFlow\Methods; |
| 4 |
|
| 5 |
// don't call the file directly |
| 6 |
if (!defined('ABSPATH')) exit(); |
| 7 |
require_once LWS_WOOREWARDS_INCLUDES . '/pointsflow/methods/metakey.php'; |
| 8 |
|
| 9 |
/** WP Swings |
| 10 |
* Not the official one by WooCommerce |
| 11 |
* @see https://wordpress.org/plugins/points-and-rewards-for-woocommerce/ */ |
| 12 |
class PointsAndRewards4WC extends \LWS\WOOREWARDS\PointsFlow\Methods\MetaKey |
| 13 |
{ |
| 14 |
/** @return (array) the json that will be send, |
| 15 |
* An array with each entries as {email, points} */ |
| 16 |
public function export($value, $arg) |
| 17 |
{ |
| 18 |
return parent::export('wps_wpr_points', $arg); |
| 19 |
} |
| 20 |
|
| 21 |
/** @return (string) human readable name */ |
| 22 |
public function getTitle() |
| 23 |
{ |
| 24 |
return __("Points and Rewards for WooCommerce (by WP Swings)", 'woorewards-lite'); |
| 25 |
} |
| 26 |
} |
| 27 |
|