Plugin Directory

Changeset 1816925


Ignore:
Timestamp:
02/07/2018 01:36:10 AM (8 years ago)
Author:
sustun
Message:

load_plugin_textdomain fonksiyonu eklendi.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wp-quotpedia/trunk/wp-quotpedia.php

    r1816922 r1816925  
    1717add_action( 'widgets_init', 'wpb_load_widget' );
    1818 
     19add_action( 'plugins_loaded', 'myplugin_load_textdomain' );
     20/**
     21 * Load plugin textdomain.
     22 *
     23 * @since 1.0.0
     24 */
     25function myplugin_load_textdomain() {
     26  load_plugin_textdomain( 'wp-quotpedia', false, basename( dirname( __FILE__ ) ) . '/languages' );
     27}
     28
    1929// Creating the widget
    2030class wpb_widget extends WP_Widget {
Note: See TracChangeset for help on using the changeset viewer.