$ mkdir -p ~/vagrants/vccw
$ cd ~/vagrants/vccw
$ git clone [email protected]:miya0001/vccw.git .
次に以下のコードを~/.bash_profileに登録
| <?php | |
| /** | |
| * WordPress Query Comprehensive Reference | |
| * Compiled by luetkemj - luetkemj.com | |
| * Japanese translated by hissy | |
| * | |
| * CODEX: http://wpdocs.sourceforge.jp/%E9%96%A2%E6%95%B0%E3%83%AA%E3%83%95%E3%82%A1%E3%83%AC%E3%83%B3%E3%82%B9/WP_Query#.E3.83.91.E3.83.A9.E3.83.A1.E3.83.BC.E3.82.BF | |
| * Source: https://core.trac.wordpress.org/browser/tags/3.9/src/wp-includes/query.php | |
| * Original: https://gist.github.com/luetkemj/2023628/9e911982440141a13cb1dd8ba1ad6b35cd7bbdd7 | |
| */ |
| <?php | |
| /* | |
| Plugin Name: Custom Meta Table | |
| Plugin URI: http://www.webopixel.net/wordpress/637.html | |
| Description: カスタムフィールドの値をオリジナルのテーブル(DB)に保存する | |
| Author: k.ishiwata | |
| Version: 0.1 | |
| Author URI: http://www.webopixel.net/ | |
| */ | |
| class CustomMetaTable { |
| #!/bin/sh | |
| echo '玉子とじラーメン 650円(大盛800円)' | |
| echo '玉子とじ担々麺 800円(大盛980円)' | |
| echo 'もやしそば 750円(大盛980円)' | |
| echo 'ワンタンメン 750円(大盛980円)' | |
| echo '叉焼麺 800円(大盛980円)' | |
| echo '天津麺 750円(大盛980円)' | |
| echo '五目そば 750円(大盛980円)' | |
| echo '酸辣湯麺 850円(大盛1000円)' |
| <?php | |
| function query_posts($query) { | |
| $GLOBALS['wp_query'] = new WP_Query(); | |
| return $GLOBALS['wp_query']->query($query); | |
| } |
| # Require any additional compass plugins here. | |
| # Set this to the root of your project when deployed: | |
| http_path = "/" | |
| css_dir = "css" | |
| sass_dir = "sass" | |
| images_dir = "img" | |
| javascripts_dir = "js" | |
| # You can select your preferred output style here (can be overridden via the command line): |
| <?php | |
| public function plugins_loaded(){ | |
| add_action ( 'edited_term',array($this,'save_extra_category_fileds')); // 編集画面の保存 | |
| add_action ( 'created_term',array($this,'save_extra_category_fileds')); // 新規追加の保存 | |
| } | |
| public function init(){ | |
| $args=array('public' => true,'_builtin' => false ); // builtin=false(WordPressが設定してるものは省く) | |
| $output = 'names'; // or objects |
$ mkdir -p ~/vagrants/vccw
$ cd ~/vagrants/vccw
$ git clone [email protected]:miya0001/vccw.git .
次に以下のコードを~/.bash_profileに登録
| <?php | |
| /* | |
| Plugin Name: Really Simple CSV Importer Action add-on | |
| Description: Run the additional action after importing the post data | |
| Author: Takuro Hishikawa | |
| Version: 0.1 | |
| */ | |
| class rscsvimporter_action { | |
| // singleton instance |
| <?php | |
| /** | |
| * カスタムフィールドを定義 | |
| * | |
| * @param array $settings Smart_Custom_Fields_Setting オブジェクトの配列 | |
| * @param string $type 投稿タイプ or ロール | |
| * @param int $id 投稿ID or ユーザーID | |
| * @param string $meta_type post | user | |
| * @return array | |
| */ |