forked from kocpc/wp-shortcode-advertising
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwp-shortcode-advertising.php
44 lines (40 loc) · 1.24 KB
/
wp-shortcode-advertising.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
<?php
/**
* WP Shortcode Advertising
*
* Plugin Name: WP Shortcode Advertising
* Description: A plugin that allow you to insert advertising via shortcode.
* Author: Hiram Huang <[email protected]>
* Author URI: https://www.facebook.com/naxqihao
* Version: 0.1
* Text Domain: wp-shortcode-advertising
* Domain Path: /languages
* License: GPLv2 or later
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
*
* @author Hiram Huang <[email protected]>
* @package wp-shortcode-advertising
* @since 0.1
*/
if( ! defined( 'ABSPATH' ) ) {
die( 'SHAME ON YOU' );
}
/**
* Define plugin information.
* Part refer from facebook-instant-articles-wp.
*/
define( 'SA_PLUGIN_VERSION', '0.1' );
define( 'SA_PLUGIN_PATH_FULL', __FILE__ );
define( 'SA_PLUGIN_PATH', plugin_basename( __FILE__ ) );
define( 'SA_PLUGIN_FILE_BASENAME', pathinfo( __FILE__, PATHINFO_FILENAME ) );
define( 'SA_PLUGIN_TEXT_DOMAIN', 'wp-shortcode-advertising' );
/**
* Import plugin classes.
*/
require_once( dirname( __FILE__ ) . '/settings/class-wp-shortcode-advertising-settings.php' );
require_once( dirname( __FILE__ ) . '/includes/class-wp-shortcode-advertising-filter.php' );
/**
* Initial plugin.
*/
WP_Shortcode_Advertising_Settings::init();
WP_Shortcode_Advertising_Filter::init();