|
Last change
on this file since 36 was
32,
checked in by toemon, 17 years ago
|
|
カスタムファンクションをプラグイン側へ移動
リンクの関数追加 #7 #9
xpress_right_arrow_post_link($show = false)
xpress_left_arrow_post_link($show = false)
カスタム関数名変更
the_credit() -> xpress_credit()
html_convert_time() -> xpress_convert_time()
|
|
File size:
783 bytes
|
| Line | |
|---|
| 1 | <?php
|
|---|
| 2 | /*
|
|---|
| 3 | Plugin Name: Plugin for XPressME
|
|---|
| 4 | Plugin URI: http://www.toemon.com
|
|---|
| 5 | Description: Plugin for XPressME (custom function,filter,action)
|
|---|
| 6 | Author: toemon
|
|---|
| 7 | Version: 0.001
|
|---|
| 8 | Author URI: http://www.toemon.com
|
|---|
| 9 | */
|
|---|
| 10 | require_once('xpressme_class.php');
|
|---|
| 11 | $xpessme = new XPressME_Class();
|
|---|
| 12 |
|
|---|
| 13 | add_action('admin_menu', array(&$xpessme, 'add_option_page'));
|
|---|
| 14 | add_action('admin_head', array(&$xpessme, 'add_admin_head'));
|
|---|
| 15 | add_filter("upload_dir",array(&$xpessme, 'xpress_upload_filter'), 1); // Change wp-include/wp_upload_dir()
|
|---|
| 16 | if (!$xpressme->is_save_post_revision){
|
|---|
| 17 | remove_action( 'pre_post_update', 'wp_save_post_revision' ); // Not Save Post Revision
|
|---|
| 18 | }
|
|---|
| 19 | //require_once('../include/custom_functions.php');
|
|---|
| 20 | require_once dirname( __FILE__ ).'/include/custom_functions.php' ;
|
|---|
| 21 | ?> |
|---|
Note: See
TracBrowser
for help on using the repository browser.