forked from AgencyPMG/SEO-Auto-Linker
-
Notifications
You must be signed in to change notification settings - Fork 3
/
seo-auto-linker.php
72 lines (62 loc) · 1.89 KB
/
seo-auto-linker.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<?php
/*
Plugin Name: SEO Auto Linker
Plugin URI: http://pmg.co/seo-auto-linker
Description: Allows you to automatically link terms with in your post, page or custom post type content.
Version: 0.9.1
Author: Christopher Davis
Author URI: http://christopherdavis.me
Text Domain: seoal
Domain Path: /lang
Copyright 2012 Christopher Davis, Performance Media Group <[email protected]>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License, version 2, as
published by the Free Software Foundation.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
define('SEOAL_PATH', plugin_dir_path(__FILE__));
define('SEOAL_URL', plugin_dir_url(__FILE__));
require_once(SEOAL_PATH . 'inc/base.php');
require_once(SEOAL_PATH . 'inc/post-type.php');
if(is_admin())
{
require_once(SEOAL_PATH . 'inc/admin.php');
}
else
{
require_once(SEOAL_PATH . 'inc/front.php');
}
add_action('init', 'seoal_load_textdomain');
/*
* Loads the plugin's text domain for translation
*
* @uses load_plugin_textdomain
* @since 0.7
*/
function seoal_load_textdomain()
{
load_plugin_textdomain(
'seoal',
false,
dirname(plugin_basename(__FILE__)) . '/lang/'
);
}
add_action('plugins_loaded', 'seoal_loaded');
/**
* Provides an always safe action into which to hook for plugins that extend
* SEO Auto Linker.
*
* @since 0.8.2
* @uses do_action
* @return null
*/
function seoal_loaded()
{
do_action('seoal_loaded');
}