forked from FancyThemes/wp-advanced-excerpt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathadvanced-excerpt.php
25 lines (21 loc) · 769 Bytes
/
advanced-excerpt.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
<?php
/*
Plugin Name: Advanced Excerpt
Plugin URI: http://wordpress.org/plugins/advanced-excerpt/
Description: Control the appearance of WordPress post excerpts
Version: 4.2.3
Author: Delicious Brains
Author URI: http://deliciousbrains.com/
*/
$GLOBALS['advanced_excerpt_version'] = '4.2.3';
function advanced_excerpt_load_textdomain() {
load_plugin_textdomain( 'advanced-excerpt', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
}
add_action( 'wp_loaded', 'advanced_excerpt_load_textdomain' );
require_once 'class/advanced-excerpt.php';
require_once 'functions/functions.php';
function advanced_excerpt_init() {
global $advanced_excerpt;
$advanced_excerpt = new Advanced_Excerpt( __FILE__ );
}
add_action( 'init', 'advanced_excerpt_init', 5 );