XPressME Integration Kit

Trac

source: trunk/wp-content/plugins/xpressme/xpressme.php @ 32

Last change on this file since 32 was 32, checked in by toemon, 15 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/*
3Plugin Name: Plugin for XPressME
4Plugin URI: http://www.toemon.com
5Description: Plugin for XPressME (custom function,filter,action)
6Author: toemon
7Version: 0.001
8Author URI: http://www.toemon.com
9*/
10require_once('xpressme_class.php');
11$xpessme = new XPressME_Class();
12
13add_action('admin_menu', array(&$xpessme, 'add_option_page'));
14add_action('admin_head', array(&$xpessme, 'add_admin_head'));
15add_filter("upload_dir",array(&$xpessme, 'xpress_upload_filter'),       1);             // Change wp-include/wp_upload_dir()
16if (!$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');
20require_once dirname( __FILE__ ).'/include/custom_functions.php' ;
21?>
Note: See TracBrowser for help on using the repository browser.