Created
September 30, 2012 09:29
-
-
Save kprimdal/3806328 to your computer and use it in GitHub Desktop.
WP: Plugin start
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
<?php | |
/* | |
Plugin Name: Primux XXXX | |
Plugin URI: http://primux.dk | |
Description: Plugin to Add functions to XXXX | |
Version: 1.0 | |
Author: Primux Media | |
Author URI: http://primux.dk | |
*/ | |
/* | |
|-------------------------------------------------------------------------- | |
| CONSTANTS | |
|-------------------------------------------------------------------------- | |
*/ | |
if(!defined('MUX_DIR')) { | |
define('MUX_DIR', plugin_dir_path( __FILE__ )); | |
} | |
if(!defined('MUX_URL')) { | |
define('MUX_URL', plugin_dir_url( __FILE__ )); | |
} | |
// Plugin Root File | |
if( !defined( 'MUX_PLUGIN_FILE' ) ) { | |
define( 'MUX_PLUGIN_FILE', __FILE__ ); | |
} | |
/* | |
|-------------------------------------------------------------------------- | |
| Globals | |
|-------------------------------------------------------------------------- | |
*/ | |
global $mux_settings; | |
/* | |
|-------------------------------------------------------------------------- | |
| INTERNATIONALIZATION | |
|-------------------------------------------------------------------------- | |
*/ | |
function mux_textdomain() { | |
// Set filter for plugin's languages directory | |
$mux_lang_dir = dirname( plugin_basename( MUX_PLUGIN_FILE ) ) . '/languages/'; | |
$mux_lang_dir = apply_filters( 'edd_languages_directory', $mux_lang_dir ); | |
// Load the translations | |
load_plugin_textdomain( 'mux', false, $mux_lang_dir ); | |
} | |
// add_action( 'init', 'mux_textdomain' ); | |
/* | |
|-------------------------------------------------------------------------- | |
| INCLUDES | |
|-------------------------------------------------------------------------- | |
*/ | |
include_once( MUX_DIR . 'includes/page.php' ); | |
if( is_admin() ) { | |
} else { | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment