{"id":189,"date":"2018-10-02T07:35:42","date_gmt":"2018-10-01T22:35:42","guid":{"rendered":"https:\/\/058.jp\/twentyseventeen\/?p=189"},"modified":"2018-10-06T13:05:57","modified_gmt":"2018-10-06T04:05:57","slug":"%e8%a8%98%e4%ba%8b%e3%81%ae%e7%b5%82%e3%82%8f%e3%82%8a%e3%81%ab%e5%ba%83%e5%91%8a%e3%82%92%e8%a1%a8%e7%a4%ba%e3%81%97%e3%81%9f%e3%81%84","status":"publish","type":"post","link":"https:\/\/058.jp\/twentyseventeen\/archives\/189","title":{"rendered":"\u8a18\u4e8b\u306e\u7d42\u308f\u308a\u306b\u5e83\u544a\u3092\u8868\u793a\u3057\u305f\u3044"},"content":{"rendered":"<p>\u30b5\u30a4\u30c9\u30d0\u30fc\u3084\u30d5\u30c3\u30bf\u30fc\u3067\u306f\u306a\u304f\u3001\u8a18\u4e8b\u306e\u6700\u521d\u3084\u6700\u5f8c\u306a\u3069\u306b\u5e83\u544a\u3092\u8868\u793a\u3059\u308b\u306b\u306f\u3001\u30c6\u30fc\u30de\u306e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3092\u7de8\u96c6\u3057\u306a\u304f\u3066\u3082\u3001\u30d5\u30c3\u30af\u3092\u5229\u7528\u3059\u308b\u3068\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<p><!--more--><\/p>\n<p>\u8a18\u4e8b\u3001\u30bf\u30a4\u30c8\u30eb\u3001\u629c\u7c8b\u306a\u3069\u3001\u4f55\u304b\u3092\u8868\u793a\u3059\u308b\u30bf\u30a4\u30df\u30f3\u30b0\u3067\u306f\u3001\u305f\u3044\u3066\u3044\u4f55\u304b\u3057\u3089\u306e\u30d5\u30c3\u30af\u304c\u5229\u7528\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<p>\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u8868\u793a\u3059\u308b\u3068\u304d\u306b\u306f\u3001the_content \u30d5\u30c3\u30af\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3059\u308b\u3068\u3001\u5f15\u6570\u306b\u6e21\u3055\u308c\u305f\u8868\u793a\u4e88\u5b9a\u306e\u5185\u5bb9\uff08$content\uff09\u3092\u52a0\u5de5\u3001\u8ffd\u8a18\u3001\u7f6e\u63db\u306a\u3069\u3057\u3066\u3001\u8868\u793a\u3055\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre>\r\nadd_filter( 'the_content', '\u81ea\u4f5c\u306e\u95a2\u6570\u540d' );\r\nfunction \u81ea\u4f5c\u306e\u95a2\u6570\u540d($content) {\r\n    \/\/ $content \u3092\u52a0\u5de5\u3057\u305f\u308a\u3001\u8ffd\u8a18\u3057\u305f\u308a\u3057\u3066 return \u3059\u308b\u3002\r\n    return $content;\r\n}\r\n<\/pre>\n<h3>\u4f7f\u7528\u4f8b<\/h3>\n<p>the_content\u30d5\u30c3\u30af\u306f\u3001\u691c\u7d22\u7d50\u679c\u3084\u6295\u7a3f\u4e00\u89a7\u3067\u3082\u767a\u52d5\u3059\u308b\u305f\u3081\u3001\u5358\u4f53\u306e\u8a18\u4e8b\u306e\u3068\u304d\u3060\u3051\u672b\u5c3e\u306b\u5e83\u544a\u3092\u4ed8\u4e0e\u3057\u3001\u305d\u3046\u3067\u306a\u3044\u3068\u304d\u306f\u305d\u306e\u307e\u307e\u8fd4\u3059\u3088\u3046\u306b\u3001if\u6587\u3067\u6761\u4ef6\u3092\u4ed8\u3051\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre>\r\nadd_filter( 'the_content', 'my_the_content' );\r\nfunction my_the_content($x) {\r\n\tif (is_single()) {\r\n\t\treturn $x . '&lt;div&gt;\r\n\uff1c\u3053\u3053\u306b\r\n\u3000\u3000\u5e83\u544a\u30bf\u30b0\u3092\r\n\u3000\u3000\u5165\u308c\u308b\u306e\u3067\u3059\uff1e\r\n&lt;\/div&gt;';\r\n\t} else {\r\n\t\treturn $x;\r\n\t}\r\n}\r\n<\/pre>\n<p><code>$x . '\u5e83\u544a\u30bf\u30b0'<\/code> \u3092\u9006\u306b\u3057\u3066\u3001<code>'\u5e83\u544a\u30bf\u30b0' . $x<\/code> \u306b\u3059\u308b\u3068\u3001\u5185\u5bb9\u306e\u524d\u306b\u5e83\u544a\u3092\u633f\u5165\u3067\u304d\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u30b5\u30a4\u30c9\u30d0\u30fc\u3084\u30d5\u30c3\u30bf\u30fc\u3067\u306f\u306a\u304f\u3001\u8a18\u4e8b\u306e\u6700\u521d\u3084\u6700\u5f8c\u306a\u3069\u306b\u5e83\u544a\u3092\u8868\u793a\u3059\u308b\u306b\u306f\u3001\u30c6\u30fc\u30de\u306e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3092\u7de8\u96c6\u3057\u306a\u304f\u3066\u3082\u3001\u30d5\u30c3\u30af\u3092\u5229\u7528\u3059\u308b\u3068\u53ef\u80fd\u3067\u3059\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-189","post","type-post","status-publish","format-standard","hentry","category-ad"],"_links":{"self":[{"href":"https:\/\/058.jp\/twentyseventeen\/wp-json\/wp\/v2\/posts\/189","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/058.jp\/twentyseventeen\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/058.jp\/twentyseventeen\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/058.jp\/twentyseventeen\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/058.jp\/twentyseventeen\/wp-json\/wp\/v2\/comments?post=189"}],"version-history":[{"count":6,"href":"https:\/\/058.jp\/twentyseventeen\/wp-json\/wp\/v2\/posts\/189\/revisions"}],"predecessor-version":[{"id":313,"href":"https:\/\/058.jp\/twentyseventeen\/wp-json\/wp\/v2\/posts\/189\/revisions\/313"}],"wp:attachment":[{"href":"https:\/\/058.jp\/twentyseventeen\/wp-json\/wp\/v2\/media?parent=189"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/058.jp\/twentyseventeen\/wp-json\/wp\/v2\/categories?post=189"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/058.jp\/twentyseventeen\/wp-json\/wp\/v2\/tags?post=189"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}