Plugin Directory

Changeset 1800418


Ignore:
Timestamp:
01/10/2018 12:28:01 PM (8 years ago)
Author:
elevawebsite
Message:

food-order.php updated to let the plugin translable

File:
1 edited

Legend:

Unmodified
Added
Removed
  • food-restaurant-order-and-contact-by-whatsapp/trunk/food-order.php

    r1799228 r1800418  
    2121new Idnovate_Settings_API_WhatsAppChat();
    2222new Idnovate_WhatsAppChat();
     23
     24add_action( 'plugins_loaded', 'foodOrder_load_textdomain' );
     25function foodOrder_load_textdomain() {
     26    if(load_plugin_textdomain( 'food-order', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' )){
     27   
     28    }
     29}
    2330
    2431if( strstr($_SERVER['REQUEST_URI'], 'wp-admin/edit.php') && $_GET['post_type'] == 'food_order' ) {
     
    9097    }
    9198
     99
    92100class food_order{
    93101
     
    111119        add_shortcode('cardapio',array($this,'cardapio'));
    112120    }
    113    
     121
    114122 public function cardapio($atts){
    115123   
Note: See TracChangeset for help on using the changeset viewer.