-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
load translation textdomain and file
- Loading branch information
1 parent
cfc5656
commit c00a29a
Showing
1 changed file
with
12 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
* Plugin Name: (WCM) Filterama | ||
* Plugin URI: http://example.com | ||
* Description: Adds one taxonomy filter/drop-down/select box for each taxonomy attached to a (custom) post types list in the admin post list page. | ||
* Version: 0.3.5 | ||
* Version: 0.4 | ||
* Author: Franz Josef Kaiser <[email protected]> | ||
* Author URI: http://example.com | ||
* Contributors: userabuser, kai-ser | ||
|
@@ -28,12 +28,21 @@ static function init() | |
|
||
public function __construct() | ||
{ | ||
add_action( 'load-edit.php', array( $this, 'load' ), 0 ); | ||
add_action( 'load-edit.php', array( $this, 'load_files' ), 0 ); | ||
add_action( 'load-edit.php', array( $this, 'load_l18n' ), 0 ); | ||
} | ||
|
||
public function load() | ||
public function load_files() | ||
{ | ||
foreach ( glob( plugin_dir_path( __FILE__ ).'inc/*.php' ) as $file ) | ||
require_once $file; | ||
} | ||
|
||
public function l18n() | ||
{ | ||
load_theme_textdomain( | ||
'filterama' | ||
,plugin_dir_path( __FILE__ ).'/lang' | ||
); | ||
} | ||
} |