-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPayPing.php
More file actions
30 lines (29 loc) · 848 Bytes
/
PayPing.php
File metadata and controls
30 lines (29 loc) · 848 Bytes
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
<?php
/*
Plugin Name: PayPing ClassiPress
Description: دروازهپرداخت پیپینگ برای پوسته کلاسیپرس
Version: 1.0.0
Author: MahdiSarani
Author URI: https://MahdiSarani.ir
Text Domain: PayPing
*/
add_action( 'init', 'PayPing_ClassiPress_Gateway' );
function PayPing_ClassiPress_Gateway(){
appthemes_pp_add_currencies();
include 'includes/PayPingGateway.php';
}
function appthemes_pp_add_currencies(){
$currencies = array(
'IRR' => array(
'symbol' => 'ریال',
'name' => __('ایران', 'PayPing')
),
'IRT' => array(
'symbol' => 'تومان',
'name' => __('ایران', 'PayPing')
)
);
foreach( $currencies as $currency_code => $args ){
APP_Currencies::add_currency( $currency_code, $args );
}
}