-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathwp-glossary.php
31 lines (28 loc) · 995 Bytes
/
wp-glossary.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
<?php
/**
* Plugin Name: WP Glossary
* Plugin URI: http://wordpress.org/extend/plugins/wp-glossary/
* Description: Build a glossary of terms and link your post content to it.
* Author: TCBarrett
* Version: 3.1.2
* Author URI: http://www.tcbarrett.com/
* Text Domain: wp-glossary
* Domain Path: /lang/
*/
global $wpg_glossary_count, $wpg_doing_shortcode;
$wpg_glossary_count = 0;
//if( function_exists('add_action') ):
require_once( dirname(__FILE__) . '/class/wpg.class.php' );
require_once( dirname(__FILE__) . '/class/wpg-admin.class.php' );
require_once( dirname(__FILE__) . '/fn-lib.php' );
require_once( dirname(__FILE__) . '/ajax.php' );
new WPG( dirname(__FILE__) );
new WPG_Admin( dirname(__FILE__) );
// add_action( 'admin_init', 'tcb_wpg_test' );
function tcb_wpg_test(){
if( $prefix = $_GET['populate'] ):
for( $i = 1; $i < 99; $i++ ):
wp_insert_post( array('post_type'=>'glossary', 'post_title'=>$prefix . '-' . $i, 'post_status'=>'publish') );
endfor;
endif;
}