Skip to content
This repository has been archived by the owner on Nov 6, 2019. It is now read-only.

Commit

Permalink
Merge branch 'juanfra-master'
Browse files Browse the repository at this point in the history
  • Loading branch information
coreymckrill committed Jan 17, 2017
2 parents bc97c63 + d58830d commit 9c87c51
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion camptix.php
Expand Up @@ -4,6 +4,9 @@
* Plugin URI: http://wordcamp.org
* Description: Simple and flexible event ticketing for WordPress.
* Version: 1.5.1
* Text Domain: camptix
* Domain Path: /languages/
*
* Author: Automattic
* Author URI: http://wordcamp.org
* License: GPLv2
Expand Down Expand Up @@ -77,7 +80,7 @@ function __construct() {
add_action( 'shutdown', array( $this, 'shutdown' ) );

// Load a text domain
load_plugin_textdomain( 'camptix', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
add_action( 'plugins_loaded', array( $this, 'load_textdomain' ) );
}

/**
Expand Down Expand Up @@ -184,6 +187,13 @@ function schedule_events() {
wp_schedule_event( time(), 'daily', 'tix_scheduled_daily' );
}

/**
* Load Textdomain
*/
function load_textdomain() {
load_plugin_textdomain( 'camptix', false, plugin_basename( dirname( __FILE__ ) ) . '/languages/' );
}

/**
* Filters cron_schedules
*/
Expand Down

0 comments on commit 9c87c51

Please sign in to comment.