Deleted articles cannot be recovered. Draft of this article would be also deleted. Are you sure you want to delete this article?

<?php /** * Plugin Name: Add Meta to REST-API * Author: Takayuki Miyauchi * Description: Example plugin that adds post meta to rest-api. */ add_action( 'rest_api_init', function() { register_rest_field( 'post', // post type 'post_meta', // rest-apiに追加するキー array( 'get_callback' => function( $object, $field_name, $request ) { // 出力したいカスタムフィールドのキーをここで定義 $meta_fields = array( 'color', 'price', ); $met
以前にFacebookである人が、SSHの接続情報の管理に ~/.ssh/config を使ってたんだけど、鍵が多すぎて修羅場みたいなことを書いてて、その時は特に何も思いつかなかったんですが、以下のような方法はどうでしょうね? ワーキングディレクトリにSSHのコンフィグを置く。 .ssh-config というファイル名で内容は以下のような感じのあれです。 Host example.com HostName xxx.xxx.xxx.xxx User vagrant Port 22 UserKnownHostsFile /dev/null StrictHostKeyChecking no PasswordAuthentication no IdentityFile /path/to/private_key IdentitiesOnly yes LogLevel FATAL ForwardAge
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く