forked from sheabunge/footer-text
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfooter-text.php
38 lines (33 loc) · 990 Bytes
/
footer-text.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
/**
* Plugin Name: Footer Text
* Plugin URI: https://sheabunge.com/plugins/footer-text/
* Description: Allow changing of the theme footer text easily from the dashboard
* Author: Shea Bunge
* Author URI: https://sheabunge.com
* License: MIT
* License URI: https://opensource.org/licenses/MIT
* Version: 2.0.2
* Text Domain: footer-text
* Domain Path: /languages
*/
/**
* Administration
*/
require plugin_dir_path( __FILE__ ) . 'includes/admin.php';
/**
* Shortcodes
*/
require plugin_dir_path( __FILE__ ) . 'includes/class-shortcodes.php';
$GLOBALS['footer_text_shortcodes'] = new Footer_Text_Shortcodes();
/**
* Template Tags
*/
require plugin_dir_path( __FILE__ ) . 'includes/template-tags.php';
/**
* Load the plugin textdomain
*/
function load_footer_text_textdomain() {
load_plugin_textdomain( 'footer-text', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
}
add_action( 'plugins_loaded', 'load_footer_text_textdomain' );