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
関連記事
-
-
wordpress plug-in [register_taxonomy_for_object_type]
register_taxonomy_for_object_type仕事で使っているWordpress
-
-
postgresqlのvacuumでビビった件
ある日突然、サービスが落ちていると連絡を受けました。 URLにアクセスしてみると、確かにサ
-
-
SVNリポジトリのリプレース(とeclipseの設定)
SVNリポジトリのリプレースを行ったのでエントリー。 1.リポジトリをdump svn
-
-
cakephpでviewからログイン判定してアカウント表示する機能
cakephpのログイン機能を、viewから判定させたかったので調べてみました。 よく
-
-
紛糾!システム構築の巻
システム作る時って、会社の縮図だと思う。いろいろな立場の人の思惑や損得が入り混じり、考えが違うために
-
-
今頃知りました。php
http://www.php.net/manual/ja/oop5.intro.phpabstrac
-
-
PV5000/月達成したのでまたGoogleAnalyticsのデータを公開します
めちゃくちゃに力を入れていた訳でもなく、特にすごいコンテンツをエントリーした訳でもないのに、
-
-
バーコードで商品を登録する
自分が作成した帳票でバーコードを利用するhttp://taurine.yuki-prec

RSS