forked from satispay/woocommerce-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwoo-satispay.php
31 lines (26 loc) · 1002 Bytes
/
woo-satispay.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?php
/*
* Plugin Name: WooCommerce Satispay
* Plugin URI: https://wordpress.org/plugins/woo-satispay/
* Description: With Satispay you can send money to friends and pay in stores from your phone. Free, simple, secure! #doitsmart
* Author: Satispay
* Author URI: https://www.satispay.com/
* Version: 1.5.0
*/
add_action('plugins_loaded', 'wc_satispay_init', 0);
function wc_satispay_init() {
if (!class_exists('WC_Payment_Gateway')) return;
include_once('wc-satispay.php');
add_filter('woocommerce_payment_gateways', 'wc_satispay_add_gateway');
function wc_satispay_add_gateway($methods) {
$methods[] = 'WC_Satispay';
return $methods;
}
add_filter('plugin_action_links_'.plugin_basename( __FILE__ ), 'wc_satispay_action_links');
function wc_satispay_action_links($links) {
$pluginLinks = array(
'<a href="'.admin_url('admin.php?page=wc-settings&tab=checkout§ion=satispay').'">'.__('Settings', 'woo-satispay').'</a>'
);
return array_merge($pluginLinks, $links);
}
}