forked from kickstarts/kickstarts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.php
38 lines (30 loc) · 909 Bytes
/
settings.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<?php
/**
* Default initialization for the plugin:
* - Registers the default textdomain.
*/
function plugin_init() {
$locale = apply_filters( 'plugin_locale', get_locale(), 'plugin' );
load_textdomain( 'plugin', WP_LANG_DIR . '/plugin/plugin-' . $locale . '.mo' );
load_plugin_textdomain( 'plugin', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
}
/**
* Activate the plugin
*/
function plugin_activate() {
// First load the init scripts in case any rewrite functionality is being loaded
plugin_init();
flush_rewrite_rules();
}
register_activation_hook( __FILE__, 'plugin_activate' );
/**
* Deactivate the plugin
* Uninstall routines should be in uninstall.php
*/
function plugin_deactivate() {
}
register_deactivation_hook( __FILE__, 'plugin_deactivate' );
// Wireup actions
add_action( 'init', 'plugin_init' );
// Wireup filters
// Wireup shortcodes