PluginProbe
MyRewards / trunk
MyRewards vtrunk
5.7.8 5.7.7 5.7.6 trunk 1.2.2 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 2.0.7 2.1.1 2.2.0 2.3.0 2.4.0 2.4.1 2.5.0 2.6.4 2.6.6 3.0.0.0 3.1.0 3.1.2 3.1.2.1 3.10.4 3.10.9 All 165 releases
woorewards / include / pointsflow / methods / pointsandrewards4wc.php

pointsandrewards4wc.php in MyRewards trunk, at include/pointsflow/methods/pointsandrewards4wc.php

27 lines 764 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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