Last change
on this file since 20 was
19,
checked in by toemon, 16 years ago
|
プラグインの設定画面サンプル
プラグインをクラス化して設定テスト画面を配置(まだ設定値書き込みは出来ていない)
|
File size:
530 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 |
|
---|
17 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.