forked from wp-plugins/woocommerce-tl-birimi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathyenitl.php
51 lines (48 loc) · 1.95 KB
/
yenitl.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<?php
/*
Plugin Name: WooCommerce TL Birimi
Plugin URI: http://wordpress.org/extend/plugins/woocommerce-tl-birimi
Description: Woocommerce Turk Lira Para Birimi, Woocommerce Kullanan Turkiye Magazalari icin gelistirilmistir.
Version: 2.2
Author: Halil Kaya <[email protected]>
Author URI: http://www.gencmedya.com
License: GPLv3
Requires at least: 3.0 +
Tested up to: 4.1
*/
/*
* Copyright 2012 Halil Kaya <[email protected]>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
* MA 02110-1301, USA.
*/
add_action('plugins_loaded', 'tl_birimi', 0);
add_filter('woocommerce_currency_symbol', 'tl_birimi' );
function tl_birimi(){return '<span class="TL"></span>';}
// Register style sheet.
add_action( 'wp_enqueue_scripts', 'register_plugin_styles' );
function load_custom_wp_admin_style() {
wp_register_style( 'custom_wp_admin_css', plugins_url . '/woocommerce-tl-birimi/stil.css', false, '1.0.0' );
wp_enqueue_style( 'custom_wp_admin_css' );
}
add_action( 'admin_enqueue_scripts', 'register_plugin_styles' );
/**
* Register style admin sheet.
*/
function register_plugin_styles() {
wp_register_style( 'stil', plugins_url( 'woocommerce-tl-birimi/stil.css' ) );
wp_enqueue_style( 'stil' );
}
?>