wordpress plugin change the taxonomy when you suggest the time
1. at first, download Post Expirator.
2.change code like this,
line72
——————————————————————————
// wp_update_post(array(‘ID’ => $a->post_id, ‘post_status’ => ‘draft’));
// delete_post_meta($a->post_id, ‘expiration-date’);
// update_post_meta($a->post_id, ‘expiration-date’, $a->meta_value, true);
delete_post_meta($a->post_id, ‘expiration-date’);
wp_set_object_terms($a->post_id, ‘after_event’, ‘public_status’);
——————————————————————————
i think impotant is ‘wp_set_object_terms’ function.
more information
http://codex.wordpress.org/Function_Reference/wp_set_object_terms
Google AD
関連記事
-
-
WordCampTokyo2011行ってきた
WordCampTokyo2011 http://2011.tokyo.wordcamp.
-
-
WordPressアプリ
iPhoneのwordpressアプリ、さっきダウンロードして今テスト。ほとんどの機能が付いてて、い
-
-
SVNリポジトリのリプレース(とeclipseの設定)
SVNリポジトリのリプレースを行ったのでエントリー。 1.リポジトリをdump svn
-
-
【wordpress】buddypressでの子テーマの作リ方
先日BuddyPressのインストール方法をお伝えしましたが、インストールしたままテーマを変
-
-
EC-cube+MYSQL < EC-cube+PostgreSQL
http://sasapurin.doorblog.jp/archives/cat_50047102
-
-
PHP:GDでテキストの画像合成アプリ作った
前回のNO MUSIC, NO LIFE.メーカーに続き、テキストを入力して画像化するアプリ
-
-
ロリポップ+お名前.comで独自ドメイン取得
onamae.com で独自ドメイン取得しました。 そのときのメモ。 1.lollipo
-
-
zenphotoを考え始める
googleのwebアルバムを使っていて、こりゃ便利じゃわい、と思ってたけど、結局完全に無料じゃない

RSS