Plugin Directory

Changeset 1791047


Ignore:
Timestamp:
12/22/2017 05:03:04 AM (8 years ago)
Author:
weblife
Message:

readme + languages

Location:
wp-click-2-chat/trunk
Files:
4 added
2 edited

Legend:

Unmodified
Added
Removed
  • wp-click-2-chat/trunk/readme.txt

    r1790876 r1791047  
    33Requires at least: 3.8
    44Tested up to: 4.9.1
    5 Stable tag: 1.2.3
     5Stable tag: 1.2.4
    66License: GPLv2
    77License URI: https://www.gnu.org/licenses/gpl-2.0.html
  • wp-click-2-chat/trunk/wp-click-2-chat.php

    r1790875 r1791047  
    77 * Author: WP Click 2 Chat
    88 * Text Domain: wc2c
    9  * Text Domain: /languages
    109 */
    1110
     
    7271
    7372
     73
     74
     75// for plugins language
     76add_action( 'init', 'wc2c_load_plugin_textdomain' );
     77function wc2c_load_plugin_textdomain() {
     78  load_plugin_textdomain( 'wc2c', false, basename( dirname( __FILE__ ) ) . '/languages' );
     79}
     80
     81
     82
    7483////////////////////////////////////////////////////////
    7584// Adding item to settings menu of the admin:
     
    8796function wc2c_plugin_options() {
    8897    global $wc2c_options_key;
     98
     99   
    89100    if ( !current_user_can( 'manage_options') )  {
    90101        wp_die( __( 'You do not have sufficient permissions to access this page.', 'wc2c' ) );
Note: See TracChangeset for help on using the changeset viewer.