{"id":1116,"date":"2018-09-29T03:19:27","date_gmt":"2018-09-28T18:19:27","guid":{"rendered":"https:\/\/yuis-programming.com\/?p=1116"},"modified":"2021-11-07T09:47:30","modified_gmt":"2021-11-07T00:47:30","slug":"wordpress-%e3%83%86%e3%82%ad%e3%82%b9%e3%83%88%e3%82%a6%e3%82%a3%e3%82%b8%e3%82%a7%e3%83%83%e3%83%88%e3%81%aehook","status":"publish","type":"post","link":"https:\/\/yuis-programming.com\/?p=1116","title":{"rendered":"WordPress API\u3067\u30c6\u30ad\u30b9\u30c8\u30a6\u30a3\u30b8\u30a7\u30c3\u30c8\u306e\u30d5\u30c3\u30af"},"content":{"rendered":"<p>WordPress API\u306ePHP\u3067\u30c6\u30ad\u30b9\u30c8\u30a6\u30a3\u30b8\u30a7\u30c3\u30c8\u306e\u30d5\u30c3\u30af(hook)\u3092\u4f7f\u3046\u65b9\u6cd5\u306b\u3064\u3044\u3066\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<pre><code>function add_smiley($content) {\n$new_content = '';\n$new_content.= $content . 'hoge';\nreturn $new_content;\n}\nadd_filter('widget_text', 'add_smiley');\n<\/code><\/pre>\n<p>\u7279\u5b9a\u306e\u30c6\u30ad\u30b9\u30c8\u30a6\u30a3\u30b8\u30a7\u30c3\u30c8ID\u3092\u6307\u5b9a\u3059\u308b\u3001\u306a\u3069\u3068\u3044\u3046\u3053\u3068\u306f\u3067\u304d\u305a\u3001\u5168\u3066\u306e\u30c6\u30ad\u30b9\u30c8\u30a6\u30a3\u30b8\u30a7\u30c3\u30c8\u306b\u9069\u7528\u3055\u308c\u308b\u3002<br \/>\n\u306a\u306e\u3067\u666e\u6bb5\u304b\u3089\u3001\u4f7f\u7528\u3059\u308b\u30c6\u30ad\u30b9\u30c8\u30a6\u30a3\u30b8\u30a7\u30c3\u30c8\u306f\uff11\u3064\u306e\u307f\u306b\u3057\u3066\u304a\u304f\u3001\u306a\u3069\u5bfe\u7b56\u3092\u3057\u3066\u304a\u304f\u3068\u3044\u3044\u304b\u3082\u3057\u308c\u306a\u3044\u3002<br \/>\n\u3069\u3046\u3057\u3066\u3082\u8907\u6570\u306e\u5834\u6240\u306b\u6e21\u3063\u3066\u30c6\u30ad\u30b9\u30c8\u30a6\u30a3\u30b8\u30a7\u30c3\u30c8\u3092\u8907\u6570\u4f7f\u7528\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u5834\u5408\u306f\u3001\u30c6\u30ad\u30b9\u30c8\u30a6\u30a3\u30b8\u30a7\u30c3\u30c8\u306e\u30d7\u30e9\u30b0\u30a4\u30f3\u306a\u3069\u3092\u5229\u7528\u3057\u3066hook\u304c\u9069\u7528\u3055\u308c\u308b\u3082\u306e\u3068\u9069\u7528\u3055\u308c\u306a\u3044\u3082\u306e\u3067\u5206\u3051\u3066\u4f7f\u7528\u3059\u308b\u3068\u3044\u3044\u3060\u308d\u3046\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>WordPress API\u306ePHP\u3067\u30c6\u30ad\u30b9\u30c8\u30a6\u30a3\u30b8\u30a7\u30c3\u30c8\u306e\u30d5\u30c3\u30af(hook)\u3092\u4f7f\u3046\u65b9\u6cd5\u306b\u3064\u3044\u3066\u7d39\u4ecb\u3057\u307e\u3059\u3002 f [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spay_email":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false},"categories":[1],"tags":[],"acf":[],"jetpack_featured_media_url":"","jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p8Rxwo-i0","_links":{"self":[{"href":"https:\/\/yuis-programming.com\/index.php?rest_route=\/wp\/v2\/posts\/1116"}],"collection":[{"href":"https:\/\/yuis-programming.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/yuis-programming.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/yuis-programming.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/yuis-programming.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1116"}],"version-history":[{"count":2,"href":"https:\/\/yuis-programming.com\/index.php?rest_route=\/wp\/v2\/posts\/1116\/revisions"}],"predecessor-version":[{"id":3349,"href":"https:\/\/yuis-programming.com\/index.php?rest_route=\/wp\/v2\/posts\/1116\/revisions\/3349"}],"wp:attachment":[{"href":"https:\/\/yuis-programming.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1116"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/yuis-programming.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1116"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/yuis-programming.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1116"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}