/yenitl.php

  1. <?php  
  2. /** 
  3. Plugin Name: WooCommerce TL Birimi 
  4. Plugin URI: http://wordpress.org/extend/plugins/woocommerce-tl-birimi 
  5. Description: Yeni TL simgenizi sitelerinizde kullanabilirsiniz. Bu Eklenti ile temanızda yada eklentinizde mevcut tl yazısı yerine Yeni TL simgesini Kullanıcılarınıza Gösterebilirsiniz. 
  6. Version: 1.0 
  7. Author: Halil Kaya <gnckampus@hotmail.com> 
  8. Author URI: http://www.gencmedya.com 
  9. License: GPLv3 
  10. Requires at least: 3.0 + 
  11. Tested up to: 3.3.1 
  12. */ 
  13. /** 
  14. * Copyright 2012 Halil Kaya <gnckampus@hotmail.com> 
  15. * 
  16. * This program is free software; you can redistribute it and/or modify 
  17. * it under the terms of the GNU General Public License as published by 
  18. * the Free Software Foundation; either version 3 of the License, or 
  19. * (at your option) any later version. 
  20. * 
  21. * This program is distributed in the hope that it will be useful,  
  22. * but WITHOUT ANY WARRANTY; without even the implied warranty of 
  23. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 
  24. * GNU General Public License for more details. 
  25. * 
  26. * You should have received a copy of the GNU General Public License 
  27. * along with this program; if not, write to the Free Software 
  28. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,  
  29. * MA 02110-1301, USA. 
  30. */ 
  31. add_action('plugins_loaded', 'tl_birimi', 0); 
  32. add_filter('woocommerce_currency_symbol', 'tl_birimi' ); 
  33. function tl_birimi() {return '<img class="tl" src="/wp-content/plugins/woocommerce-tl-simgesi/tl.png" width="15px" height="15px" />';} 
  34. ?> 
.