{"id":7219,"date":"2024-10-16T16:21:48","date_gmt":"2024-10-16T07:21:48","guid":{"rendered":"https:\/\/wpmake.jp\/contents\/?post_type=knowledge&#038;p=7219"},"modified":"2024-10-17T20:54:37","modified_gmt":"2024-10-17T11:54:37","slug":"functions-php","status":"publish","type":"knowledge","link":"https:\/\/wpmake.jp\/contents\/knowledge\/functions-php\/","title":{"rendered":"WordPress\u306efunctions.php\u3068\u306f\uff1f\u7528\u9014\u3084\u6ce8\u610f\u4e8b\u9805\u3092\u3084\u3055\u3057\u304f\u89e3\u8aac"},"content":{"rendered":"<p>WordPress\u3092\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3059\u308b\u969b\u3001\u624b\u3092\u52a0\u3048\u308b\u3053\u3068\u304c\u591a\u3044\u30d5\u30a1\u30a4\u30eb\u304cfunctions.php\u3067\u3059\u3002functions.php\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u4efb\u610f\u306e\u30bf\u30a4\u30df\u30f3\u30b0\u3067\u69d8\u3005\u306a\u51e6\u7406\u3092\u8ffd\u52a0\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<p>\u305d\u306e\u4e00\u65b9\u3067\u3001\u5c11\u3057\u306e\u30df\u30b9\u3067\u30b5\u30a4\u30c8\u304c\u8868\u793a\u3055\u308c\u306a\u304f\u306a\u308b\u306a\u3069\u3001\u6df1\u523b\u306a\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3059\u308b\u53ef\u80fd\u6027\u304c\u3042\u308b\u305f\u3081\u3001\u53d6\u308a\u6271\u3044\u306b\u306f\u5341\u5206\u306a\u6ce8\u610f\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n<p>\u672c\u8a18\u4e8b\u3067\u306f\u3001functions.php\u3092\u5b89\u5168\u306b\u4f7f\u7528\u3057\u3001\u4fbf\u5229\u306b\u4f7f\u3044\u3053\u306a\u3059\u305f\u3081\u306e\u57fa\u672c\u304b\u3089\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u65b9\u6cd5\u307e\u3067\u3092\u308f\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3057\u307e\u3059\u3002<\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_71 counter-hierarchy ez-toc-counter ez-toc-custom ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">\u76ee\u6b21<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #282828;color:#282828\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #282828;color:#282828\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/wpmake.jp\/contents\/knowledge\/functions-php\/#functionsphp%E3%81%A8%E3%81%AF\" title=\"functions.php\u3068\u306f\">functions.php\u3068\u306f<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/wpmake.jp\/contents\/knowledge\/functions-php\/#functionsphp%E3%81%AE%E4%BB%A3%E8%A1%A8%E7%9A%84%E3%81%AA7%E3%81%A4%E3%81%AE%E6%B4%BB%E7%94%A8%E6%96%B9%E6%B3%95\" title=\"functions.php\u306e\u4ee3\u8868\u7684\u306a7\u3064\u306e\u6d3b\u7528\u65b9\u6cd5\">functions.php\u306e\u4ee3\u8868\u7684\u306a7\u3064\u306e\u6d3b\u7528\u65b9\u6cd5<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/wpmake.jp\/contents\/knowledge\/functions-php\/#%E3%80%901%E3%80%91%E3%82%AA%E3%83%AA%E3%82%B8%E3%83%8A%E3%83%AB%E3%81%AE%E9%96%A2%E6%95%B0%E3%82%92%E5%AE%9A%E7%BE%A9%E3%81%99%E3%82%8B\" title=\"\u30101\u3011\u30aa\u30ea\u30b8\u30ca\u30eb\u306e\u95a2\u6570\u3092\u5b9a\u7fa9\u3059\u308b\">\u30101\u3011\u30aa\u30ea\u30b8\u30ca\u30eb\u306e\u95a2\u6570\u3092\u5b9a\u7fa9\u3059\u308b<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/wpmake.jp\/contents\/knowledge\/functions-php\/#%E3%80%902%E3%80%91CSS%E3%82%84JavaScript%E3%82%92%E8%AA%AD%E3%81%BF%E8%BE%BC%E3%82%80\" title=\"\u30102\u3011CSS\u3084JavaScript\u3092\u8aad\u307f\u8fbc\u3080\">\u30102\u3011CSS\u3084JavaScript\u3092\u8aad\u307f\u8fbc\u3080<\/a><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/wpmake.jp\/contents\/knowledge\/functions-php\/#wp_enqueue_style%EF%BC%88CSS%E3%82%92%E8%AA%AD%E3%81%BF%E8%BE%BC%E3%82%80%E5%A0%B4%E5%90%88%EF%BC%89\" title=\"wp_enqueue_style()\uff08CSS\u3092\u8aad\u307f\u8fbc\u3080\u5834\u5408\uff09\">wp_enqueue_style()\uff08CSS\u3092\u8aad\u307f\u8fbc\u3080\u5834\u5408\uff09<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/wpmake.jp\/contents\/knowledge\/functions-php\/#wp_enqueue_script%EF%BC%88JavaScript%E3%82%92%E8%AA%AD%E3%81%BF%E8%BE%BC%E3%82%80%E5%A0%B4%E5%90%88%EF%BC%89\" title=\"wp_enqueue_script()\uff08JavaScript\u3092\u8aad\u307f\u8fbc\u3080\u5834\u5408\uff09\">wp_enqueue_script()\uff08JavaScript\u3092\u8aad\u307f\u8fbc\u3080\u5834\u5408\uff09<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/wpmake.jp\/contents\/knowledge\/functions-php\/#%E3%80%903%E3%80%91%E3%82%AA%E3%83%AA%E3%82%B8%E3%83%8A%E3%83%AB%E3%81%AE%E3%82%B7%E3%83%A7%E3%83%BC%E3%83%88%E3%82%B3%E3%83%BC%E3%83%89%E3%82%92%E4%BD%9C%E6%88%90%E3%81%99%E3%82%8B\" title=\"\u30103\u3011\u30aa\u30ea\u30b8\u30ca\u30eb\u306e\u30b7\u30e7\u30fc\u30c8\u30b3\u30fc\u30c9\u3092\u4f5c\u6210\u3059\u308b\">\u30103\u3011\u30aa\u30ea\u30b8\u30ca\u30eb\u306e\u30b7\u30e7\u30fc\u30c8\u30b3\u30fc\u30c9\u3092\u4f5c\u6210\u3059\u308b<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/wpmake.jp\/contents\/knowledge\/functions-php\/#%E3%80%904%E3%80%91%E6%9C%80%E7%B5%82%E6%9B%B4%E6%96%B0%E6%97%A5%E3%82%92%E8%A1%A8%E7%A4%BA%E3%81%99%E3%82%8B\" title=\"\u30104\u3011\u6700\u7d42\u66f4\u65b0\u65e5\u3092\u8868\u793a\u3059\u308b\">\u30104\u3011\u6700\u7d42\u66f4\u65b0\u65e5\u3092\u8868\u793a\u3059\u308b<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/wpmake.jp\/contents\/knowledge\/functions-php\/#%E3%80%905%E3%80%91%E6%8A%9C%E7%B2%8B%E3%81%AE%E9%95%B7%E3%81%95%E3%82%92%E5%A4%89%E6%9B%B4%E3%81%99%E3%82%8B\" title=\"\u30105\u3011\u629c\u7c8b\u306e\u9577\u3055\u3092\u5909\u66f4\u3059\u308b\">\u30105\u3011\u629c\u7c8b\u306e\u9577\u3055\u3092\u5909\u66f4\u3059\u308b<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/wpmake.jp\/contents\/knowledge\/functions-php\/#%E3%80%906%E3%80%91WordPress%E3%81%AE%E3%83%90%E3%83%BC%E3%82%B8%E3%83%A7%E3%83%B3%E7%95%AA%E5%8F%B7%E3%82%92%E5%89%8A%E9%99%A4%E3%81%99%E3%82%8B\" title=\"\u30106\u3011WordPress\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u756a\u53f7\u3092\u524a\u9664\u3059\u308b\">\u30106\u3011WordPress\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u756a\u53f7\u3092\u524a\u9664\u3059\u308b<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/wpmake.jp\/contents\/knowledge\/functions-php\/#%E3%80%907%E3%80%91WordPress%E3%81%AE%E6%A4%9C%E7%B4%A2%E6%A9%9F%E8%83%BD%E3%82%92%E7%84%A1%E5%8A%B9%E5%8C%96%E3%81%99%E3%82%8B\" title=\"\u30107\u3011WordPress\u306e\u691c\u7d22\u6a5f\u80fd\u3092\u7121\u52b9\u5316\u3059\u308b\">\u30107\u3011WordPress\u306e\u691c\u7d22\u6a5f\u80fd\u3092\u7121\u52b9\u5316\u3059\u308b<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-12\" href=\"https:\/\/wpmake.jp\/contents\/knowledge\/functions-php\/#functionsphp%E3%82%92%E7%B7%A8%E9%9B%86%E3%81%99%E3%82%8B%E9%9A%9B%E3%81%AB%E6%B3%A8%E6%84%8F%E3%81%99%E3%81%B9%E3%81%8D%E3%81%93%E3%81%A8\" title=\"functions.php\u3092\u7de8\u96c6\u3059\u308b\u969b\u306b\u6ce8\u610f\u3059\u3079\u304d\u3053\u3068\">functions.php\u3092\u7de8\u96c6\u3059\u308b\u969b\u306b\u6ce8\u610f\u3059\u3079\u304d\u3053\u3068<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-13\" href=\"https:\/\/wpmake.jp\/contents\/knowledge\/functions-php\/#%E7%B7%A8%E9%9B%86%E3%81%AF%E6%85%8E%E9%87%8D%E3%81%AB%E8%A1%8C%E3%81%86\" title=\"\u7de8\u96c6\u306f\u614e\u91cd\u306b\u884c\u3046\">\u7de8\u96c6\u306f\u614e\u91cd\u306b\u884c\u3046<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-14\" href=\"https:\/\/wpmake.jp\/contents\/knowledge\/functions-php\/#%E8%A6%AA%E3%83%86%E3%83%BC%E3%83%9E%E3%81%AEfunctionsphp%E3%82%92%E7%B7%A8%E9%9B%86%E3%81%97%E3%81%AA%E3%81%84%EF%BC%88%E5%AD%90%E3%83%86%E3%83%BC%E3%83%9E%E3%82%92%E5%88%A9%E7%94%A8%E3%81%99%E3%82%8B\" title=\"\u89aa\u30c6\u30fc\u30de\u306efunctions.php\u3092\u7de8\u96c6\u3057\u306a\u3044\uff08\u5b50\u30c6\u30fc\u30de\u3092\u5229\u7528\u3059\u308b)\">\u89aa\u30c6\u30fc\u30de\u306efunctions.php\u3092\u7de8\u96c6\u3057\u306a\u3044\uff08\u5b50\u30c6\u30fc\u30de\u3092\u5229\u7528\u3059\u308b)<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-15\" href=\"https:\/\/wpmake.jp\/contents\/knowledge\/functions-php\/#%E3%82%B3%E3%83%A1%E3%83%B3%E3%83%88%E3%82%92%E8%BF%BD%E5%8A%A0%E3%81%97%E3%81%A6%E8%AA%AC%E6%98%8E%E3%81%99%E3%82%8B\" title=\"\u30b3\u30e1\u30f3\u30c8\u3092\u8ffd\u52a0\u3057\u3066\u8aac\u660e\u3059\u308b\">\u30b3\u30e1\u30f3\u30c8\u3092\u8ffd\u52a0\u3057\u3066\u8aac\u660e\u3059\u308b<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-16\" href=\"https:\/\/wpmake.jp\/contents\/knowledge\/functions-php\/#%E3%82%BB%E3%82%AD%E3%83%A5%E3%83%AA%E3%83%86%E3%82%A3%E3%81%AB%E9%85%8D%E6%85%AE%E3%81%99%E3%82%8B\" title=\"\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u306b\u914d\u616e\u3059\u308b\">\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u306b\u914d\u616e\u3059\u308b<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-17\" href=\"https:\/\/wpmake.jp\/contents\/knowledge\/functions-php\/#%E3%81%BE%E3%81%A8%E3%82%81\" title=\"\u307e\u3068\u3081\">\u307e\u3068\u3081<\/a><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"functionsphp%E3%81%A8%E3%81%AF\"><\/span>functions.php\u3068\u306f<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>functions.php\u306f\u3001WordPress\u5185\u3067\u6c4e\u7528\u7684\u306b\u4f7f\u308f\u308c\u308b\u6a5f\u80fd\u306b\u3064\u3044\u3066\u5b9a\u7fa9\u3057\u305f\u30d5\u30a1\u30a4\u30eb\u3067\u3059\u3002<\/p>\n<p>\u5834\u6240\u306f\u3001\u300cWordPress\u306e\u30eb\u30fc\u30c8\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u300d\u2192\u300cwp-content\u300d\u2192\u300cthemes\u300d\u2192\u300c\uff08\u6709\u52b9\u5316\u3057\u3066\u3044\u308b\uff09 \u30c6\u30fc\u30de\u300d\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u76f4\u4e0b\u306b\u3042\u308a\u307e\u3059\u3002WordPress\u304c\u30c6\u30fc\u30de\u30d5\u30a1\u30a4\u30eb\u3092\u8aad\u307f\u8fbc\u3080\u969b\u306b\u306f\u6700\u521d\u306b\u8aad\u307f\u8fbc\u307e\u308c\u3001\u30c6\u30fc\u30de\u5168\u4f53\u3067\u5229\u7528\u3055\u308c\u308b\u3068\u3044\u3046\u7279\u5fb4\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/wpmake.jp\/contents\/wp-content\/uploads\/2024\/10\/202409-wp-functions-00.jpg\" alt=\"functions.php\u3068\u306f\" width=\"1200\" height=\"450\" class=\"alignnone size-full wp-image-7222\" srcset=\"https:\/\/wpmake.jp\/contents\/wp-content\/uploads\/2024\/10\/202409-wp-functions-00.jpg 1200w, https:\/\/wpmake.jp\/contents\/wp-content\/uploads\/2024\/10\/202409-wp-functions-00-300x113.jpg 300w, https:\/\/wpmake.jp\/contents\/wp-content\/uploads\/2024\/10\/202409-wp-functions-00-1024x384.jpg 1024w, https:\/\/wpmake.jp\/contents\/wp-content\/uploads\/2024\/10\/202409-wp-functions-00-768x288.jpg 768w\" sizes=\"(max-width: 1200px) 100vw, 1200px\" \/><\/p>\n<h2><span class=\"ez-toc-section\" id=\"functionsphp%E3%81%AE%E4%BB%A3%E8%A1%A8%E7%9A%84%E3%81%AA7%E3%81%A4%E3%81%AE%E6%B4%BB%E7%94%A8%E6%96%B9%E6%B3%95\"><\/span>functions.php\u306e\u4ee3\u8868\u7684\u306a7\u3064\u306e\u6d3b\u7528\u65b9\u6cd5<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>WordPress\u3067\u4f55\u304b\u6a5f\u80fd\u3092\u62e1\u5f35\u3057\u305f\u3044\u5834\u5408\u306b\u306f\u3001\u5b9a\u7fa9\u3057\u305f\u3044\u5185\u5bb9\u3092\u95a2\u6570\u306e\u5f62\u5f0f\u3067functions.php\u306b\u8ffd\u8a18\u3057\u307e\u3059\u3002<\/p>\n<p>\u62e1\u5f35\u3067\u304d\u308b\u6a5f\u80fd\u3068\u3057\u3066\u3001\u4ee3\u8868\u7684\u306a\u3082\u306e\u30927\u3064\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<h3><span class=\"ez-toc-section\" id=\"%E3%80%901%E3%80%91%E3%82%AA%E3%83%AA%E3%82%B8%E3%83%8A%E3%83%AB%E3%81%AE%E9%96%A2%E6%95%B0%E3%82%92%E5%AE%9A%E7%BE%A9%E3%81%99%E3%82%8B\"><\/span>\u30101\u3011\u30aa\u30ea\u30b8\u30ca\u30eb\u306e\u95a2\u6570\u3092\u5b9a\u7fa9\u3059\u308b<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>WordPress\u306b\u6a19\u6e96\u3067\u7528\u610f\u3055\u308c\u3066\u3044\u308b\u95a2\u6570\u4ee5\u5916\u306b\u81ea\u4f5c\u306e\u95a2\u6570\u3092\u5b9a\u7fa9\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u81ea\u4f5c\u306e\u95a2\u6570\u3092\u4f5c\u6210\u3059\u308b\u969b\u306b\u306f\u3001<\/p>\n<ul>\n<li>\u30aa\u30ea\u30b8\u30ca\u30eb\u95a2\u6570\u306e\u5b9a\u7fa9<\/li>\n<li>\u30aa\u30ea\u30b8\u30ca\u30eb\u95a2\u6570\u3092\u547c\u3073\u51fa\u3059\u8a18\u8ff0<\/li>\n<\/ul>\n<p>\u306e\u4e21\u65b9\u304c\u5fc5\u8981\u3067\u3059\u3002functions.php\u306b\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30b3\u30fc\u30c9\u3092\u8ffd\u8a18\u3057\u307e\u3059\u3002<\/p>\n<pre>\r\n\/\/ \u81ea\u4f5c\u306e\u95a2\u6570\u3092\u5b9a\u7fa9\r\nfunction original_function(){\r\n    echo '\u3053\u3053\u306b\u30aa\u30ea\u30b8\u30ca\u30eb\u306e\u95a2\u6570\u3092\u8a18\u8ff0\u3057\u307e\u3059';\r\n}\r\n\r\n\r\n\/\/\u30a2\u30af\u30b7\u30e7\u30f3\u30d5\u30c3\u30af\u306e\u6307\u5b9a\r\nadd_action('wp_body_open', 'original_function');\r\n<\/pre>\n<p>WordPress\u3067\u306f\u3001\u300c\u30a2\u30af\u30b7\u30e7\u30f3\u30d5\u30c3\u30af\u300d\u3068\u3044\u3046\u4ed5\u7d44\u307f\u3092\u5099\u3048\u3066\u3044\u307e\u3059\u3002\u3053\u308c\u306f\u3001\u7279\u5b9a\u306e\u30bf\u30a4\u30df\u30f3\u30b0\u3067\u30a2\u30af\u30b7\u30e7\u30f3\u3092\u5b9f\u884c\u3059\u308b\u4ed5\u7d44\u307f\u3067\u3001\u4eca\u56de\u306e\u5834\u5408\u306f\u95a2\u6570\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<p>\u4f8b\u3048\u3070\u3001\u30a2\u30af\u30b7\u30e7\u30f3\u30d5\u30c3\u30af\u306b\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u3082\u306e\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<table>\n<tr>\n<td>\u30d5\u30c3\u30af\u540d\u79f0<\/td>\n<td>\u5b9f\u884c\u3055\u308c\u308b\u30bf\u30a4\u30df\u30f3\u30b0<\/td>\n<\/tr>\n<tr>\n<td>template_redirect<\/td>\n<td>\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30d5\u30a1\u30a4\u30eb\u3092\u8aad\u307f\u8fbc\u3080\u524d<\/td>\n<\/tr>\n<tr>\n<td>wp_enqueue_scripts<\/td>\n<td>&lt;head&gt;\u30bf\u30b0\u3092\u751f\u6210\u3059\u308b\u524d<\/td>\n<\/tr>\n<tr>\n<td>wp_body_open<\/td>\n<td>&lt;body&gt;\u30bf\u30b0\u306e\u5f8c<\/td>\n<\/tr>\n<tr>\n<td>wp_head<\/td>\n<td>&lt;head&gt;\u30bf\u30b0\u304c\u9589\u3058\u308b\u524d<\/td>\n<\/tr>\n<\/table>\n<p>\u30a2\u30af\u30b7\u30e7\u30f3\u30d5\u30c3\u30af\u3092\u5229\u7528\u3059\u308b\u969b\u306f\u3001WordPress\u306b\u6a19\u6e96\u3067\u7528\u610f\u3055\u308c\u3066\u3044\u308badd_action()\u95a2\u6570\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<pre>\r\nadd_action()\u95a2\u6570\u306e\u66f8\u5f0f\uff1a\r\nadd_action( '\u30d5\u30c3\u30af\u540d', '\u5b9f\u884c\u3059\u308b\u95a2\u6570\u540d' );\r\n<\/pre>\n<p>\u4e0a\u8a18\u306e\u81ea\u4f5c\u95a2\u6570\u306e\u4f8b\u3067\u3042\u308c\u3070\u3001add_action()\u95a2\u6570\u3092\u4f7f\u7528\u3057\u3066\u300c<body>\u30bf\u30b0\u306e\u5f8c\u306b\u3001original_function\u95a2\u6570\u3092\u5b9f\u884c\u3059\u308b\u300d\u3068\u3044\u3046\u6307\u5b9a\u306b\u306a\u308a\u307e\u3059\u3002\u30a2\u30af\u30b7\u30e7\u30f3\u30d5\u30c3\u30af\u3092\u4f7f\u7528\u3059\u308b\u3068\u3001\u5143\u306e\u30c6\u30fc\u30de\u30d5\u30a1\u30a4\u30eb\u3092\u5909\u66f4\u305b\u305a\u306bHTML\u3084\u30bf\u30b0\u306a\u3069\u3092\u8ffd\u52a0\u3067\u304d\u308b\u306e\u3067\u4fbf\u5229\u3067\u3059\u3002<\/p>\n<h3><span class=\"ez-toc-section\" id=\"%E3%80%902%E3%80%91CSS%E3%82%84JavaScript%E3%82%92%E8%AA%AD%E3%81%BF%E8%BE%BC%E3%82%80\"><\/span>\u30102\u3011CSS\u3084JavaScript\u3092\u8aad\u307f\u8fbc\u3080<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\u5916\u90e8\u306eCSS\u3084JavaScript\u3092\u8aad\u307f\u8fbc\u3080\u5834\u5408\u306f\u3001HTML\u306e\u3088\u3046\u306bhead\u90e8\u5206\u306blink\u30bf\u30b0\u3092\u4f7f\u7528\u3057\u3066\u66f8\u304d\u8fbc\u3080\u5f62\u306f\u4f7f\u7528\u305b\u305a\u306bfunctions.php\u306b\u8a18\u8ff0\u3057\u307e\u3059\u3002<\/p>\n<p>\u305d\u306e\u969b\u306b\u306fWordPress\u304c\u6a19\u6e96\u3067\u7528\u610f\u3057\u3066\u3044\u308bwp_enqueue_style()\u95a2\u6570\u3001\u307e\u305f\u306f\u3001wp_enqueue_script()\u95a2\u6570\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<table>\n<tr>\n<th>\u95a2\u6570\u540d<\/th>\n<th>\u8aac\u660e<\/th>\n<\/tr>\n<tr>\n<td>wp_enqueue_style()<\/td>\n<td>\u30b9\u30bf\u30a4\u30eb\u30b7\u30fc\u30c8\u3092\u8aad\u307f\u8fbc\u3080\u95a2\u6570\u3002\u66f8\u5f0f\u306f<br \/>wp_enqueue_style( $handle, $src, $deps, $ver, $media)<\/td>\n<\/tr>\n<tr>\n<td>wp_enqueue_scripts()<\/td>\n<td>\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u8aad\u307f\u8fbc\u3080\u95a2\u6570\u3002\u66f8\u5f0f\u306f<br \/>wp_enqueue_script( $handle, $src, $deps, $ver, $args);<\/td>\n<\/tr>\n<\/table>\n<h4><span class=\"ez-toc-section\" id=\"wp_enqueue_style%EF%BC%88CSS%E3%82%92%E8%AA%AD%E3%81%BF%E8%BE%BC%E3%82%80%E5%A0%B4%E5%90%88%EF%BC%89\"><\/span>wp_enqueue_style()\uff08CSS\u3092\u8aad\u307f\u8fbc\u3080\u5834\u5408\uff09<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>\u8ffd\u52a0\u3067CSS\u3092\u8aad\u307f\u8fbc\u3080\u5834\u5408\u306f\u3001functions.php\u306b\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30b3\u30fc\u30c9\u3092\u8ffd\u8a18\u3057\u307e\u3059\u3002<\/p>\n<pre>\r\nfunction my_custom_styles() {\r\n  \/\/ \u30e1\u30a4\u30f3\u30b9\u30bf\u30a4\u30eb\u30b7\u30fc\u30c8\u3092\u767b\u9332  \r\n  wp_enqueue_style( 'main-style', get_template_directory_uri() . '\/css\/main.css', array(), null, 'all' );\r\n\r\n\r\n  \/\/ \u30ab\u30b9\u30bf\u30e0\u30b9\u30bf\u30a4\u30ebA\u306f\u30e1\u30a4\u30f3\u30b9\u30bf\u30a4\u30eb\u306b\u4f9d\u5b58\u3057\u3066\u3044\u308b\r\n  wp_enqueue_style( 'custom-style-a', get_template_directory_uri() . '\/css\/custom-a.css', array( 'main-style' ), null, 'all' );\r\n\r\n\r\n  \/\/ \u30ab\u30b9\u30bf\u30e0\u30b9\u30bf\u30a4\u30ebB\u306f\u30e1\u30a4\u30f3\u30b9\u30bf\u30a4\u30eb\u3068\u30ab\u30b9\u30bf\u30e0\u30b9\u30bf\u30a4\u30ebA\u306b\u4f9d\u5b58\u3057\u3066\u3044\u308b\r\n  wp_enqueue_style( 'custom-style-b', get_template_directory_uri() . '\/css\/custom-b.css', array( 'main-style', 'custom-style-a' ), null, 'all' );\r\n}\r\n\r\n\r\nadd_action( 'wp_enqueue_scripts', 'my_custom_styles' );\r\n<\/pre>\n<p>\u4e0a\u8a18\u306e\u4f8b\u3067\u306f\u3001wp_enqueue_style()\u95a2\u6570\u3067\u4ee5\u4e0b\u306e\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc\u3092\u6307\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<table>\n<tr>\n<th>\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc\u540d<\/th>\n<th>\u5185\u5bb9<\/th>\n<\/tr>\n<tr>\n<td>$handle\uff08\u5fc5\u9808\uff09<\/td>\n<td>\u30b9\u30bf\u30a4\u30eb\u30b7\u30fc\u30c8\u540d\u3092\u6307\u5b9a\uff08\uff1dcustom-style-a\uff09<\/td>\n<\/tr>\n<tr>\n<td>$src<\/td>\n<td>\u30b9\u30bf\u30a4\u30eb\u30b7\u30fc\u30c8\u306e\u30d1\u30b9\u3092\u6307\u5b9a\uff08\uff1dget_template_directory_uri() .<br \/>&#8216;\/css\/custom-a.css\uff09<\/td>\n<\/tr>\n<tr>\n<td>$deps<\/td>\n<td>\u4f9d\u5b58\u95a2\u4fc2\uff08\u7279\u306b\u6307\u5b9a\u4e0d\u8981\u3067\u3042\u308c\u3070\u300carray()\u300d\u3092\u6307\u5b9a\uff09<\/td>\n<\/tr>\n<tr>\n<td>$ver<\/td>\n<td>\u30d0\u30fc\u30b8\u30e7\u30f3\uff08\u7279\u306b\u6307\u5b9a\u4e0d\u8981\u3067\u3042\u308c\u3070\u300cfalse\u300d\u3092\u6307\u5b9a\uff09<\/td>\n<\/tr>\n<tr>\n<td>$media<\/td>\n<td>\u30b9\u30bf\u30a4\u30eb\u30b7\u30fc\u30c8\u306e\u30e1\u30c7\u30a3\u30a2\u5c5e\u6027\uff08\u7279\u306b\u6307\u5b9a\u4e0d\u8981\u3067\u3042\u308c\u3070\u300c&#8217;all&#8217;\u300d\u3092\u6307\u5b9a\uff09<\/td>\n<\/tr>\n<\/table>\n<p>\u53c2\u8003\uff1a<a href=\"https:\/\/developer.wordpress.org\/reference\/functions\/wp_enqueue_style\/\" target=\"_blank\" rel=\"noopener\">wp_enqueue_style()\uff08WordPress\u516c\u5f0f\u30b5\u30a4\u30c8\uff09<\/a><\/p>\n<h4><span class=\"ez-toc-section\" id=\"wp_enqueue_script%EF%BC%88JavaScript%E3%82%92%E8%AA%AD%E3%81%BF%E8%BE%BC%E3%82%80%E5%A0%B4%E5%90%88%EF%BC%89\"><\/span>wp_enqueue_script()\uff08JavaScript\u3092\u8aad\u307f\u8fbc\u3080\u5834\u5408\uff09<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>\u8ffd\u52a0\u3067JavaScript\u3092\u8aad\u307f\u8fbc\u3080\u5834\u5408\u306f\u3001functions.php\u306b\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30b3\u30fc\u30c9\u3092\u8ffd\u8a18\u3057\u307e\u3059\u3002<\/p>\n<pre>\r\nfunction my_custom_scripts() {\r\n  \/\/ \u30b9\u30af\u30ea\u30d7\u30c8A\u3092\u8aad\u307f\u8fbc\u307f\r\n  wp_enqueue_script( 'custom-script-a', get_template_directory_uri() . '\/js\/custom-a.js', array( 'jquery' ), null, true );\r\n\r\n\r\n  \/\/ \u30b9\u30af\u30ea\u30d7\u30c8A\u8aad\u307f\u8fbc\u307f\u5f8c\u306b\u30b9\u30af\u30ea\u30d7\u30c8B\u3092\u8aad\u307f\u8fbc\u307f\r\n  wp_enqueue_script( 'custom-script-b', get_template_directory_uri() . '\/js\/custom-b.js', array( 'custom-script-a' ), null, true );\r\n\r\n\r\n  \/\/ \u30b9\u30af\u30ea\u30d7\u30c8A\u30fbB\u306e\u8aad\u307f\u8fbc\u307f\u5f8c\u306b\u30b9\u30af\u30ea\u30d7\u30c8C\u3092\u8aad\u307f\u8fbc\u307f\r\n  wp_enqueue_script( 'custom-script-c', get_template_directory_uri() . '\/js\/custom-c.js', array( 'custom-script-a', 'custom-script-b' ), null, true );\r\n}\r\n\r\n\r\nadd_action( 'wp_enqueue_scripts', 'my_custom_scripts' );\r\n<\/pre>\n<p>\u4e0a\u8a18\u306e\u4f8b\u3067\u306f\u3001wp_enqueue_script()\u95a2\u6570\u3067\u4ee5\u4e0b\u306e\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc\u3092\u6307\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<table>\n<tr>\n<th>\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc\u540d<\/th>\n<th>\u5185\u5bb9<\/th>\n<\/tr>\n<tr>\n<td>$handle\uff08\u5fc5\u9808\uff09<\/td>\n<td>\u30b9\u30af\u30ea\u30d7\u30c8\u540d\u3092\u6307\u5b9a\uff08\uff1d&#8217;custom-script-a\u3001custom-script-b\uff09<\/td>\n<\/tr>\n<tr>\n<td>$src<\/td>\n<td>\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u30d1\u30b9\u3092\u6307\u5b9a\uff08\uff1dget_template_directory_uri() .<br \/> &#8216;\/js\/custom-a.js\u3001get_template_directory_uri() . &#8216;\/js\/custom-b.js\uff09<\/td>\n<\/tr>\n<tr>\n<td>$deps<\/td>\n<td>\u4f9d\u5b58\u95a2\u4fc2\uff08\u7279\u306b\u6307\u5b9a\u4e0d\u8981\u3067\u3042\u308c\u3070\u300carray()\u300d\u3092\u6307\u5b9a\uff09<\/td>\n<\/tr>\n<tr>\n<td>$ver<\/td>\n<td>\u30d0\u30fc\u30b8\u30e7\u30f3\uff08\u7279\u306b\u6307\u5b9a\u4e0d\u8981\u3067\u3042\u308c\u3070\u300cfalse\u300d\u3092\u6307\u5b9a\uff09<\/td>\n<\/tr>\n<tr>\n<td>$args<\/td>\n<td>\u8ffd\u52a0\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u8aad\u307f\u8fbc\u3080\u5834\u5408\u306b\u6307\u5b9a\uff08\u7279\u306b\u6307\u5b9a\u4e0d\u8981\u3067\u3042\u308c\u3070\u300cfalse\u300d\u3092\u6307\u5b9a\uff09<\/td>\n<\/tr>\n<\/table>\n<p>\u53c2\u8003\uff1a<a href=\"https:\/\/developer.wordpress.org\/reference\/functions\/wp_enqueue_script\/\" target=\"_blank\" rel=\"noopener\">wp_enqueue_script()\uff08WordPress\u516c\u5f0f\u30b5\u30a4\u30c8\uff09<\/a><\/p>\n<h3><span class=\"ez-toc-section\" id=\"%E3%80%903%E3%80%91%E3%82%AA%E3%83%AA%E3%82%B8%E3%83%8A%E3%83%AB%E3%81%AE%E3%82%B7%E3%83%A7%E3%83%BC%E3%83%88%E3%82%B3%E3%83%BC%E3%83%89%E3%82%92%E4%BD%9C%E6%88%90%E3%81%99%E3%82%8B\"><\/span>\u30103\u3011\u30aa\u30ea\u30b8\u30ca\u30eb\u306e\u30b7\u30e7\u30fc\u30c8\u30b3\u30fc\u30c9\u3092\u4f5c\u6210\u3059\u308b<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\u30b7\u30e7\u30fc\u30c8\u30b3\u30fc\u30c9\u306f\u3001\u300c\u7279\u5b9a\u306e\u6587\u5b57\u5217\u3092\u8868\u793a\u3059\u308b\u300d\u300c\u95a2\u6570\u3092\u5b9f\u884c\u3059\u308b\u300d\u306a\u3069\u7279\u5b9a\u306e\u30b3\u30fc\u30c9\u3092\u547c\u3073\u51fa\u305b\u308b\u6a5f\u80fd\u3067\u3059\u3002\u4f5c\u696d\u52b9\u7387\u306e\u5411\u4e0a\u3084\u7c21\u5358\u306b\u6a5f\u80fd\u3092\u5171\u6709\u3067\u304d\u308b\u306a\u3069\u306e\u30e1\u30ea\u30c3\u30c8\u304c\u3042\u308a\u3001\u4f7f\u3044\u3053\u306a\u305b\u308b\u3068\u4fbf\u5229\u3067\u3059\u3002<\/p>\n<p>\u30ab\u30b9\u30bf\u30e0\u30b7\u30e7\u30fc\u30c8\u30b3\u30fc\u30c9\u3092\u4f5c\u6210\u3059\u308b\u969b\u306b\u306f\u3001<\/p>\n<ul>\n<li>\u30ab\u30b9\u30bf\u30e0\u30b7\u30e7\u30fc\u30c8\u30b3\u30fc\u30c9\u3092\u5b9a\u7fa9\u3059\u308b\u95a2\u6570<\/li>\n<li>\u30ab\u30b9\u30bf\u30e0\u30b7\u30e7\u30fc\u30c8\u30b3\u30fc\u30c9\u3092\u547c\u3073\u51fa\u3059\u8a18\u8ff0<\/li>\n<\/ul>\n<p>\u306e\u4e21\u65b9\u304c\u5fc5\u8981\u3067\u3059\u3002WordPress\u306b\u306f\u72ec\u81ea\u306e\u30ab\u30b9\u30bf\u30e0\u30b7\u30e7\u30fc\u30c8\u30b3\u30fc\u30c9\u3092\u8ffd\u52a0\u3059\u308b\u305f\u3081\u306eadd_shortcode()\u95a2\u6570\u304c\u7528\u610f\u3055\u308c\u3066\u3044\u308b\u306e\u3067\u3001\u305d\u308c\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<p>add_shortcode()\u95a2\u6570\u306e\u66f8\u5f0f\uff1a<\/p>\n<pre>\r\nadd_shortcode('\u30b7\u30e7\u30fc\u30c8\u30b3\u30fc\u30c9\u540d', '\u5b9f\u884c\u3059\u308b\u95a2\u6570\u540d')\r\n<\/pre>\n<p>\u4f8b\u3048\u3070\u3001\u300cMyShortCode\u300d\u3068\u3044\u3046\u540d\u524d\u3067\u3001\u30ab\u30b9\u30bf\u30e0\u30b7\u30e7\u30fc\u30c8\u30b3\u30fc\u30c9\u3092\u5b9a\u7fa9\u3059\u308b\u5834\u5408\u306f\u3001functions.php\u306b\u4ee5\u4e0b\u3092\u8ffd\u8a18\u3057\u307e\u3059\u3002<\/p>\n<pre>\r\n\/\/ \u30b7\u30e7\u30fc\u30c8\u30b3\u30fc\u30c9\u3067\u4f7f\u7528\u3059\u308b\u95a2\u6570\u306e\u5b9a\u7fa9\r\nfunction show_text_sc() {\r\nreturn '\u3053\u308c\u306f\u30b7\u30e7\u30fc\u30c8\u30b3\u30fc\u30c9\u304b\u3089\u547c\u3073\u51fa\u3055\u308c\u305f\u30c6\u30ad\u30b9\u30c8\u3067\u3059\uff01';\r\n}\r\n\r\n\r\n\/\/  \u300cMyShortCode\u300d\u3068\u3044\u3046\u30b7\u30e7\u30fc\u30c8\u30b3\u30fc\u30c9\u540d\u3067\u95a2\u6570\u3092\u547c\u3073\u51fa\u3059\u8a18\u8ff0\r\nadd_shortcode(My'ShortCode', 'show_text_sc');\r\n<\/pre>\n<p>\u6295\u7a3f\u3084\u30da\u30fc\u30b8\u5185\u3067 [My&#8217;ShortCode&#8217;] \u3068\u5165\u529b\u3059\u308b\u3068\u3001\u300c\u3053\u308c\u306f\u30b7\u30e7\u30fc\u30c8\u30b3\u30fc\u30c9\u304b\u3089\u547c\u3073\u51fa\u3055\u308c\u305f\u30c6\u30ad\u30b9\u30c8\u3067\u3059\uff01\u300d\u3068\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u307e\u305f\u3001\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30d5\u30a1\u30a4\u30eb\u5185\u3067\u30ab\u30b9\u30bf\u30e0\u30b7\u30e7\u30fc\u30c8\u30b3\u30fc\u30c9\u3092\u4f7f\u7528\u3059\u308b\u5834\u5408\u306f\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u8a18\u8ff0\u3057\u307e\u3059\u3002<\/p>\n<pre>\r\n<?php echo do_shortcode('[My'ShortCode']'); ?>\r\n<\/pre>\n<p>\u30b7\u30e7\u30fc\u30c8\u30b3\u30fc\u30c9\u306e\u4f5c\u6210\u65b9\u6cd5\u306b\u3064\u3044\u3066\u306f\u3001\u4ee5\u4e0b\u306e\u8a18\u4e8b\u3067\u8a73\u3057\u304f\u89e3\u8aac\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p><a class=\"l-contents__linkbox\" href=\"https:\/\/wpmake.jp\/contents\/customize\/shortcode\/\">WordPress\u30b7\u30e7\u30fc\u30c8\u30b3\u30fc\u30c9\u6d3b\u7528\u30ac\u30a4\u30c9\uff5c\u57fa\u672c\u30eb\u30fc\u30eb\u304b\u3089\u4f5c\u6210\u4f8b\u307e\u3067<br \/>\n<\/a><\/p>\n<h3><span class=\"ez-toc-section\" id=\"%E3%80%904%E3%80%91%E6%9C%80%E7%B5%82%E6%9B%B4%E6%96%B0%E6%97%A5%E3%82%92%E8%A1%A8%E7%A4%BA%E3%81%99%E3%82%8B\"><\/span>\u30104\u3011\u6700\u7d42\u66f4\u65b0\u65e5\u3092\u8868\u793a\u3059\u308b<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>functions.php\u306b\u8a18\u8ff0\u3059\u308b\u3053\u3068\u3067\u3001\u30bf\u30a4\u30c8\u30eb\u30bf\u30b0\u306e\u51fa\u529b\u5f62\u5f0f\u3001\u6700\u7d42\u66f4\u65b0\u65e5\u306e\u8868\u793a\u3001\u30da\u30fc\u30b8\u30cd\u30fc\u30b7\u30e7\u30f3\u8a2d\u5b9a\u306a\u3069\u3001WordPress\u30b5\u30a4\u30c8\u306e\u898b\u6804\u3048\u3092\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u6295\u7a3f\u8a18\u4e8b\u306b\u6700\u7d42\u66f4\u65b0\u65e5\u3092\u8868\u793a\u3059\u308b\u5834\u5408\u306f\u3001functions.php\u306b\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u3092\u8ffd\u8a18\u3057\u307e\u3059\u3002<\/p>\n<pre>\r\n\/\/ last_update\u3068\u3044\u3046\u95a2\u6570\u3092\u5b9a\u7fa9\r\nfunction last_update( $content ) {\r\n\u3000\/\/ \u6700\u521d\u306e\u516c\u958b\u65e5\u6642\u3092\u53d6\u5f97\uff08Unix\u30bf\u30a4\u30e0\u30b9\u30bf\u30f3\u30d7\u5f62\u5f0f\uff09\r\n    $u_time = get_the_time('U');\r\n\u3000\/\/ \u6700\u5f8c\u306b\u6295\u7a3f\u304c\u66f4\u65b0\u3055\u308c\u305f\u65e5\u6642\u3092\u53d6\u5f97\uff08Unix\u30bf\u30a4\u30e0\u30b9\u30bf\u30f3\u30d7\u5f62\u5f0f\uff09\r\n    $u_modified_time = get_the_modified_time('U');\r\n\u3000\r\n\u3000\/\/ \u66f4\u65b0\u65e5\u6642\u304c\u4f5c\u6210\u65e5\u6642\u3088\u308a\u308224\u6642\u9593\u4ee5\u4e0a\u5f8c\u3067\u3042\u308b\u304b\u3092\u30c1\u30a7\u30c3\u30af\r\n    if ($u_modified_time >= $u_time + 86400) {\r\n        $updated_date = get_the_modified_time('F jS, Y');\r\n        $updated_time = get_the_modified_time('h:i a');\r\n        $custom_content = '<p class=\"last-updated-date\">Last updated on '. $updated_date . ' at '. $updated_time .'<\/p>';\r\n\u3000\u3000\/\/ \u66f4\u65b0\u65e5\u6642\u3092\u8868\u793a\u3059\u308bHTML\u3092\u751f\u6210\u3057\u3001$custom_content \u306b\u8ffd\u52a0\r\n        $custom_content .= $content;\r\n        return $custom_content;\r\n    }\r\n    return $content;\r\n}\r\n\r\n\r\n\/\/ the_content \u30d5\u30a3\u30eb\u30bf\u30fc\u306blast_updated \u95a2\u6570\u3092\u8ffd\u52a0\r\nadd_filter( 'the_content', 'last_update' );\r\n<\/pre>\n<p>WordPress\u3067\u306f\u3001\u524d\u8ff0\u306e\u30a2\u30af\u30b7\u30e7\u30f3\u30d5\u30c3\u30af\u3068\u985e\u4f3c\u3057\u305f\u300c\u30d5\u30a3\u30eb\u30bf\u30fc\u30d5\u30c3\u30af\u300d\u3068\u3044\u3046\u4ed5\u7d44\u307f\u3092\u5099\u3048\u3066\u3044\u307e\u3059\u3002\u3053\u308c\u306f\u3001\u7279\u5b9a\u306e\u30bf\u30a4\u30df\u30f3\u30b0\u306b\u30a2\u30af\u30b7\u30e7\u30f3\u3092\u5b9f\u884c\u3059\u308b\u4ed5\u7d44\u307f\u3067\u3001\u4eca\u56de\u306e\u5834\u5408\u306f\u95a2\u6570\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<p>\u4f8b\u3048\u3070\u3001\u30d5\u30a3\u30eb\u30bf\u30fc\u30d5\u30c3\u30af\u3067\u6307\u5b9a\u3067\u304d\u308b\u306e\u306f\u4ee5\u4e0b\u306e\u30bf\u30a4\u30df\u30f3\u30b0\u3067\u3059\u3002<\/p>\n<table>\n<tr>\n<th>\u30d5\u30c3\u30af\u540d\u79f0<\/th>\n<th>\u5b9f\u884c\u3055\u308c\u308b\u30bf\u30a4\u30df\u30f3\u30b0<\/th>\n<\/tr>\n<tr>\n<td>the_content<\/td>\n<td>\u672c\u6587\u3092\u51fa\u529b\u3059\u308b\u524d<\/td>\n<\/tr>\n<tr>\n<td>the_title<\/td>\n<td>\u8a18\u4e8b\u30bf\u30a4\u30c8\u30eb\u3092\u51fa\u529b\u3059\u308b\u524d<\/td>\n<\/tr>\n<\/table>\n<p>\u30d5\u30a3\u30eb\u30bf\u30fc\u30d5\u30c3\u30af\u3092\u5229\u7528\u3059\u308b\u969b\u306f\u3001WordPress\u306b\u6a19\u6e96\u3067\u7528\u610f\u3055\u308c\u3066\u3044\u308badd_filter()\u95a2\u6570\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<pre>\r\nadd_filter()\u95a2\u6570\u306e\u66f8\u5f0f\uff1a\r\nadd_filter( '\u30d5\u30c3\u30af\u540d', '\u5b9f\u884c\u3059\u308b\u95a2\u6570\u540d' );\r\n<\/pre>\n<p>\u4e0a\u8a18\u306e\u6700\u7d42\u66f4\u65b0\u65e5\u3092\u8868\u793a\u3059\u308b\u4f8b\u3067\u3042\u308c\u3070\u3001add_filter()\u95a2\u6570\u3067\u300c\u672c\u6587\u3092\u51fa\u529b\u3059\u308b\u524d\u306b\u3001last_update\u95a2\u6570\u3092\u5b9f\u884c\u3059\u308b\u300d\u3068\u3044\u3046\u6307\u5b9a\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<h3><span class=\"ez-toc-section\" id=\"%E3%80%905%E3%80%91%E6%8A%9C%E7%B2%8B%E3%81%AE%E9%95%B7%E3%81%95%E3%82%92%E5%A4%89%E6%9B%B4%E3%81%99%E3%82%8B\"><\/span>\u30105\u3011\u629c\u7c8b\u306e\u9577\u3055\u3092\u5909\u66f4\u3059\u308b<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>WordPress\u3067\u306f\u3001\u8a18\u4e8b\u306e\u4e00\u90e8\u3092\u8868\u793a\u3059\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002\u521d\u671f\u72b6\u614b\u3067\u306f110\u6587\u5b57\u3067\u3059\u304c\u3001functions.php\u3092\u7de8\u96c6\u3059\u308b\u3053\u3068\u3067\u6587\u5b57\u306e\u9577\u3055\u3092\u5909\u66f4\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>functions.php\u306b\u3001\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n<pre>\r\n\/\/ \u629c\u7c8b\u306e\u9577\u3055\u3092200\u6587\u5b57\u306b\u5909\u66f4\u3059\u308b\r\nfunction designation_excerpt_length($length) {\r\nreturn 200;\r\n}\r\nadd_filter('excerpt_mblength', 'designation_excerpt_length');\r\n\r\n<\/pre>\n<h3><span class=\"ez-toc-section\" id=\"%E3%80%906%E3%80%91WordPress%E3%81%AE%E3%83%90%E3%83%BC%E3%82%B8%E3%83%A7%E3%83%B3%E7%95%AA%E5%8F%B7%E3%82%92%E5%89%8A%E9%99%A4%E3%81%99%E3%82%8B\"><\/span>\u30106\u3011WordPress\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u756a\u53f7\u3092\u524a\u9664\u3059\u308b<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>WordPress\u3067\u306f\u3001\u521d\u671f\u72b6\u614b\u3067\u30d0\u30fc\u30b8\u30e7\u30f3\u60c5\u5831\u304c\u8868\u793a\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u3057\u304b\u3057\u4e0d\u8981\u306a\u60c5\u5831\u306f\u30b5\u30a4\u30d0\u30fc\u653b\u6483\u306b\u7e4b\u304c\u308b\u30ea\u30b9\u30af\u304c\u3042\u308b\u305f\u3081\u3001\u8868\u793a\u3057\u306a\u3044\u307b\u3046\u304c\u5b89\u5168\u3067\u3059\u3002<\/p>\n<p>WordPress\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u756a\u53f7\u3092\u524a\u9664\u3059\u308b\u5834\u5408\u306f\u3001functions.php\u306b\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u3092\u8ffd\u8a18\u3057\u307e\u3059\u3002<\/p>\n<pre>\r\n\/\/ \u30d0\u30fc\u30b8\u30e7\u30f3\u756a\u53f7\u3092\u524a\u9664\r\nfunction hide_version() {\r\nreturn '';\r\n}\r\nadd_filter('the_generator', 'hide_version');\r\n\r\n<\/pre>\n<h3><span class=\"ez-toc-section\" id=\"%E3%80%907%E3%80%91WordPress%E3%81%AE%E6%A4%9C%E7%B4%A2%E6%A9%9F%E8%83%BD%E3%82%92%E7%84%A1%E5%8A%B9%E5%8C%96%E3%81%99%E3%82%8B\"><\/span>\u30107\u3011WordPress\u306e\u691c\u7d22\u6a5f\u80fd\u3092\u7121\u52b9\u5316\u3059\u308b<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>WordPress\u3067\u306f\u3001\u6709\u52b9\u5316\u3057\u305f\u30c6\u30fc\u30de\u306b\u3088\u3063\u3066\u306f\u521d\u671f\u72b6\u614b\u3067\u691c\u7d22\u6a5f\u80fd\u304c\u642d\u8f09\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u3042\u3063\u3066\u56f0\u308b\u6a5f\u80fd\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u304c\u3001\u691c\u7d22\u30d5\u30a9\u30fc\u30e0\u306b\u60aa\u610f\u306e\u3042\u308b\u30b3\u30fc\u30c9\u3092\u6253\u3061\u8fbc\u3093\u3067\u4e0d\u6b63\u30ed\u30b0\u30a4\u30f3\u3084\u4e0d\u6b63\u6539\u3056\u3093\u3092\u304a\u3053\u306a\u3046\u30b5\u30a4\u30d0\u30fc\u653b\u6483\uff08SQL\u30a4\u30f3\u30b8\u30a7\u30af\u30b7\u30e7\u30f3\u306a\u3069\uff09\u3092\u53d7\u3051\u308b\u30ea\u30b9\u30af\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u9069\u5207\u306a\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u5bfe\u7b56\u3092\u304a\u3053\u306a\u3063\u3066\u3044\u308c\u3070\u554f\u984c\u3042\u308a\u307e\u305b\u3093\u304c\u3001\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u306e\u77e5\u8b58\u304c\u306a\u3044\u5834\u5408\u3084\u30da\u30fc\u30b8\u6570\u304c\u5c11\u306a\u3044\u306a\u3069\u306e\u7406\u7531\u3067\u7279\u306b\u691c\u7d22\u6a5f\u80fd\u304c\u5fc5\u8981\u306a\u3044\u5834\u5408\u306b\u306f\u3001\u691c\u7d22\u6a5f\u80fd\u3092\u7121\u52b9\u306b\u3057\u3066\u304a\u3044\u305f\u307b\u3046\u304c\u5b89\u5168\u3067\u3059\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/wpmake.jp\/contents\/wp-content\/uploads\/2024\/10\/202409-wp-functions-01.jpg\" alt=\"\u30107\u3011WordPress\u306e\u691c\u7d22\u6a5f\u80fd\u3092\u7121\u52b9\u5316\u3059\u308b\" width=\"1200\" height=\"320\" class=\"alignnone size-full wp-image-7225\" srcset=\"https:\/\/wpmake.jp\/contents\/wp-content\/uploads\/2024\/10\/202409-wp-functions-01.jpg 1200w, https:\/\/wpmake.jp\/contents\/wp-content\/uploads\/2024\/10\/202409-wp-functions-01-300x80.jpg 300w, https:\/\/wpmake.jp\/contents\/wp-content\/uploads\/2024\/10\/202409-wp-functions-01-1024x273.jpg 1024w, https:\/\/wpmake.jp\/contents\/wp-content\/uploads\/2024\/10\/202409-wp-functions-01-768x205.jpg 768w\" sizes=\"(max-width: 1200px) 100vw, 1200px\" \/><\/p>\n<p>WordPress\u306e\u691c\u7d22\u6a5f\u80fd\u3092\u7121\u52b9\u5316\u3059\u308b\u5834\u5408\u306f\u3001functions.php\u306b\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u3092\u8ffd\u8a18\u3057\u307e\u3059\u3002<\/p>\n<pre>\r\n\/\/ \u691c\u7d22\u6a5f\u80fd\u3092\u7121\u52b9\u5316\r\nfunction non_search( $query, $error = true ) {\r\n\r\n\r\n  if ( is_search() ) {\r\n    $query->is_search = false;\r\n    $query->query_vars[s] = false;\r\n    $query->query[s] = false;\r\n\r\n\r\n    \/\/ to error\r\n    if ( $error == true )\r\n    $query->is_404 = true;\r\n  }\r\n}\r\n\r\n\r\nadd_action( 'parse_query', 'non_search' );\r\nadd_filter( 'get_search_form', create_function( '$a', \"return null;\" ) );\r\n<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"functionsphp%E3%82%92%E7%B7%A8%E9%9B%86%E3%81%99%E3%82%8B%E9%9A%9B%E3%81%AB%E6%B3%A8%E6%84%8F%E3%81%99%E3%81%B9%E3%81%8D%E3%81%93%E3%81%A8\"><\/span>functions.php\u3092\u7de8\u96c6\u3059\u308b\u969b\u306b\u6ce8\u610f\u3059\u3079\u304d\u3053\u3068<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>functions.php\u306f\u3001FTP\u30bd\u30d5\u30c8\u3092\u4f7f\u7528\u3057\u3066\u30c6\u30fc\u30de\u30d5\u30a9\u30eb\u30c0\u304b\u3089\u30d5\u30a1\u30a4\u30eb\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u30c6\u30ad\u30b9\u30c8\u30a8\u30c7\u30a3\u30bf\u3067\u7de8\u96c6\u3057\u307e\u3059\u3002<\/p>\n<p>\u30b3\u30fc\u30c9\u7de8\u96c6\u306b\u6163\u308c\u3066\u3044\u306a\u3044\u65b9\u306f\u3001\u76f4\u63a5php\u30d5\u30a1\u30a4\u30eb\u3092\u7de8\u96c6\u3059\u308b\u3053\u3068\u306b\u4e0d\u5b89\u3092\u611f\u3058\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002\u3057\u304b\u3057\u3001\u4e0b\u8a184\u3064\u306e\u70b9\u306b\u6ce8\u610f\u3057\u3066\u7de8\u96c6\u3059\u308c\u3070\u5927\u304d\u306a\u30c8\u30e9\u30d6\u30eb\u306b\u306f\u81f3\u3089\u305a\u306b\u6e08\u307f\u307e\u3059\u3002<\/p>\n<h3><span class=\"ez-toc-section\" id=\"%E7%B7%A8%E9%9B%86%E3%81%AF%E6%85%8E%E9%87%8D%E3%81%AB%E8%A1%8C%E3%81%86\"><\/span>\u7de8\u96c6\u306f\u614e\u91cd\u306b\u884c\u3046<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>functions.php\u306f\u3001\u30b3\u30fc\u30c9\u306b\u308f\u305a\u304b\u3067\u3082\u8aa4\u308a\u304c\u3042\u308b\u3068\u30da\u30fc\u30b8\u3092\u8868\u793a\u3057\u305f\u3068\u304d\u306b\u30a8\u30e9\u30fc\u753b\u9762\u304c\u8868\u793a\u3055\u308c\u3066\u3057\u307e\u3044\u307e\u3059\u3002<\/p>\n<p>\u7279\u306b\u3001\u4ee5\u4e0b\u306e3\u3064\u306b\u306f\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<ul>\n<li>\u30b9\u30da\u30fc\u30b9<\/li>\n<li>\u6539\u884c<\/li>\n<li>\u5168\u89d2\u6587\u5b57<\/li>\n<\/ul>\n<p>\u5168\u89d2\u306e\u7a7a\u767d\u6587\u5b57\u306f\u30b3\u30fc\u30c9\u306b\u542b\u307e\u308c\u3066\u3044\u3066\u3082\u898b\u305f\u76ee\u4e0a\u306f\u5224\u65ad\u3067\u304d\u306a\u3044\u305f\u3081\u3001\u30b3\u30d4\u30da\u3067\u30b3\u30fc\u30c9\u3092\u8cbc\u308a\u4ed8\u3051\u308b\u969b\u306f\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u307e\u305f\u30bb\u30df\u30b3\u30ed\u30f3\u3082\u3064\u3051\u5fd8\u308c\u308b\u3053\u3068\u304c\u826f\u304f\u3042\u308a\u307e\u3059\u304c\u3001\u5b9f\u884c\u3059\u308b\u3068\u30a8\u30e9\u30fc\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u307e\u305f\u3001\u30d5\u30a1\u30a4\u30eb\u3092\u7de8\u96c6\u3059\u308b\u524d\u306b\u306f\u3042\u3089\u304b\u3058\u3081\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3092\u53d6\u5f97\u3059\u308b\u7fd2\u6163\u3092\u3064\u3051\u3066\u304a\u304f\u3068\u3088\u3044\u3067\u3057\u3087\u3046\u3002\u4e07\u304c\u4e00\u30c8\u30e9\u30d6\u30eb\u304c\u767a\u751f\u3057\u305f\u3068\u3057\u3066\u3082\u3001\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u30d5\u30a1\u30a4\u30eb\u304c\u3042\u308c\u3070\u3001\u5143\u306b\u623b\u3059\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u307e\u305f\u3001functions.php\u3092\u7de8\u96c6\u3059\u308b\u969b\u306b\u306f\u3001\u30d5\u30a1\u30a4\u30eb\u306e\u672b\u5c3e\u3067\u300c?>\u300d\u30bf\u30b0\u3092\u9589\u3058\u306a\u3044\u3088\u3046\u306b\u6c17\u3092\u4ed8\u3051\u3066\u304f\u3060\u3055\u3044\u3002\u6163\u308c\u306a\u3044\u3068\u9055\u548c\u611f\u3092\u611f\u3058\u307e\u3059\u304c\u3001\u9589\u3058\u30bf\u30b0\u304c\u306a\u3044\u3053\u3068\u3067\u30da\u30fc\u30b8\u3092\u8aad\u307f\u8fbc\u3080\u969b\u306b\u30a8\u30e9\u30fc\u753b\u9762\u304c\u8868\u793a\u3055\u308c\u308b\u306e\u3092\u56de\u907f\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u307e\u305f\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306aPHP\u69cb\u6587\u30c1\u30a7\u30c3\u30af\u30c4\u30fc\u30eb\u3082\u3042\u308b\u305f\u3081\u3001\u30a8\u30e9\u30fc\u306e\u539f\u56e0\u304c\u308f\u304b\u3089\u306a\u3044\u3068\u304d\u306b\u306f\u5229\u7528\u3057\u3066\u307f\u308b\u3068\u3088\u3044\u3067\u3057\u3087\u3046\u3002<br \/>\n\u53c2\u8003\uff1a<a href=\"\" target=\"_blank\" rel=\"noopener\">https:\/\/jp.piliapp.com\/php-syntax-check\/<\/a><\/p>\n<h3><span class=\"ez-toc-section\" id=\"%E8%A6%AA%E3%83%86%E3%83%BC%E3%83%9E%E3%81%AEfunctionsphp%E3%82%92%E7%B7%A8%E9%9B%86%E3%81%97%E3%81%AA%E3%81%84%EF%BC%88%E5%AD%90%E3%83%86%E3%83%BC%E3%83%9E%E3%82%92%E5%88%A9%E7%94%A8%E3%81%99%E3%82%8B\"><\/span>\u89aa\u30c6\u30fc\u30de\u306efunctions.php\u3092\u7de8\u96c6\u3057\u306a\u3044\uff08\u5b50\u30c6\u30fc\u30de\u3092\u5229\u7528\u3059\u308b)<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>functions.php\u306f\u3001WordPress\u30c6\u30fc\u30de\u30d5\u30a9\u30eb\u30c0\u5185\u306b\u542b\u307e\u308c\u3066\u3044\u307e\u3059\u3002\u305d\u306e\u305f\u3081\u3001\u30c6\u30fc\u30de\u3092\u65b0\u3057\u3044\u30d0\u30fc\u30b8\u30e7\u30f3\u306b\u66f4\u65b0\u3059\u308b\u3068\u30d5\u30a1\u30a4\u30eb\u304c\u4e0a\u66f8\u304d\u3055\u308c\u3066\u521d\u671f\u72b6\u614b\u306b\u623b\u3063\u3066\u3057\u307e\u3044\u307e\u3059\u3002<\/p>\n<p>\u3053\u308c\u3092\u9632\u3050\u305f\u3081\u306b\u3001\u5b50\u30c6\u30fc\u30de\u3092\u4f5c\u6210\u3057\u3066\u305d\u306e\u4e2d\u306b\u3042\u308bfunctions.php\u3092\u7de8\u96c6\u3059\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u3002\u3053\u306e\u65b9\u6cd5\u3067\u3042\u308c\u3070\u3001\u30c6\u30fc\u30de\u3092\u66f4\u65b0\u3057\u3066\u3082\u5f71\u97ff\u3055\u308c\u307e\u305b\u3093\u3002\u5b50\u30c6\u30fc\u30de\u3092\u4f5c\u6210\u3059\u308b\u306e\u304c\u96e3\u3057\u3044\u5834\u5408\u306f\u3001\u306f\u3058\u3081\u304b\u3089\u5b50\u30c6\u30fc\u30de\u304c\u7528\u610f\u3055\u308c\u3066\u3044\u308b\u30c6\u30fc\u30de\u3092\u9078\u3076\u306e\u304c\u304a\u3059\u3059\u3081\u3067\u3059\u3002<\/p>\n<h3><span class=\"ez-toc-section\" id=\"%E3%82%B3%E3%83%A1%E3%83%B3%E3%83%88%E3%82%92%E8%BF%BD%E5%8A%A0%E3%81%97%E3%81%A6%E8%AA%AC%E6%98%8E%E3%81%99%E3%82%8B\"><\/span>\u30b3\u30e1\u30f3\u30c8\u3092\u8ffd\u52a0\u3057\u3066\u8aac\u660e\u3059\u308b<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>functions.php\u306b\u30b3\u30fc\u30c9\u3092\u8ffd\u52a0\u3059\u308b\u969b\u306b\u306f\u3001\u30b3\u30e1\u30f3\u30c8\u3092\u6b8b\u3057\u3066\u304a\u304f\u3053\u3068\u3092\u304a\u3059\u3059\u3081\u3057\u307e\u3059\u3002\u3069\u306e\u3088\u3046\u306a\u7406\u7531\u3067\u4f55\u3092\u3059\u308b\u6a5f\u80fd\u3092\u8ffd\u52a0\u3057\u305f\u306e\u304b\u3092\u8a18\u8ff0\u3057\u3066\u304a\u304f\u3068\u3001\u5f8c\u304b\u3089\u898b\u76f4\u3057\u305f\u969b\u306b\u3001\u307e\u305f\u5225\u306e\u62c5\u5f53\u8005\u304c\u78ba\u8a8d\u3057\u305f\u969b\u306b\u3001\u5185\u5bb9\u3092\u628a\u63e1\u3057\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n<h3><span class=\"ez-toc-section\" id=\"%E3%82%BB%E3%82%AD%E3%83%A5%E3%83%AA%E3%83%86%E3%82%A3%E3%81%AB%E9%85%8D%E6%85%AE%E3%81%99%E3%82%8B\"><\/span>\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u306b\u914d\u616e\u3059\u308b<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>WordPress\u306f\u3001\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u9762\u3067\u8106\u5f31\u306aCMS\u3060\u3068\u3044\u3046\u8a55\u4fa1\u3092\u3055\u308c\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\u7406\u7531\u306f\u8907\u6570\u3042\u308a\u307e\u3059\u304c\u3001\u30d0\u30fc\u30b8\u30e7\u30f3\u60c5\u5831\u3084\u30e6\u30fc\u30b6\u30fc\u540d\u306a\u3069\u653b\u6483\u306b\u7e4b\u304c\u308b\u60c5\u5831\u304c\u521d\u671f\u72b6\u614b\u3067\u516c\u958b\u3055\u308c\u3066\u3044\u308b\u3068\u3044\u3046\u3053\u3068\u3082\u3001\u305d\u306e\u3072\u3068\u3064\u3067\u3059\u3002<\/p>\n<p>\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u306b\u914d\u616e\u3059\u308b\u306e\u3067\u3042\u308c\u3070\u3001functoins.php\u3092\u7de8\u96c6\u3057\u3066\u4ee5\u4e0b\u306e\u4e0d\u8981\u306a\u60c5\u5831\u306f\u975e\u8868\u793a\u306b\u3059\u308b\u3068\u3088\u3044\u3067\u3057\u3087\u3046\u3002<\/p>\n<ul>\n<li>\u30d0\u30fc\u30b8\u30e7\u30f3\u60c5\u5831<\/li>\n<li>REST API\u306e\u30e6\u30fc\u30b6\u30fc\u60c5\u5831<\/li>\n<\/ul>\n<h2><span class=\"ez-toc-section\" id=\"%E3%81%BE%E3%81%A8%E3%82%81\"><\/span>\u307e\u3068\u3081<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>functions.php\u3092\u7de8\u96c6\u3059\u308b\u3053\u3068\u3067\u3001\u3055\u307e\u3056\u307e\u306a\u6a5f\u80fd\u3092\u62e1\u5f35\u3067\u304d\u307e\u3059\u3002\u898b\u898b\u6804\u3048\u3092\u826f\u304f\u3059\u308b\u3060\u3051\u3067\u306a\u304f\u3001\u30b5\u30a4\u30c8\u904b\u55b6\u3092\u30b9\u30e0\u30fc\u30ba\u306b\u3057\u3001\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u3092\u5f37\u5316\u3059\u308b\u3053\u3068\u3082\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<p>\u521d\u671f\u72b6\u614b\u306e\u307e\u307efunctions.php\u3092\u653e\u7f6e\u3057\u3066\u304a\u304f\u306e\u306f\u3082\u3063\u305f\u3044\u306a\u3044\u3053\u3068\u3067\u3059\u3002\u6ce8\u610f\u70b9\u3092\u8e0f\u307e\u3048\u3064\u3064\u3001functions.php\u3092\u6d3b\u7528\u3057\u3066\u3001WordPress\u3092\u3088\u308a\u4fbf\u5229\u306b\u4f7f\u3044\u3053\u306a\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>functions.php\u306f\u3001WordPress\u3067\u6a5f\u80fd\u3092\u62e1\u5f35\u3059\u308b\u969b\u306b\u4f7f\u7528\u3059\u308b\u91cd\u8981\u306a\u30d5\u30a1\u30a4\u30eb\u3067\u3059\u3002\u30b3\u30fc\u30c9\u3092\u8ffd\u52a0\u3059\u308b\u3053\u3068\u3067\u3001\u3055\u307e\u3056\u307e\u306a\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u304c\u53ef\u80fd\u3067\u3059\u3002\u672c\u8a18\u4e8b\u3067\u306f\u3001functions.php\u306e\u57fa\u672c\u304b\u3089\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u65b9\u6cd5\u307e\u3067\u308f\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3057\u307e\u3059\u3002<\/p>\n","protected":false},"author":1,"featured_media":7283,"parent":0,"menu_order":0,"template":"","format":"standard","meta":{"_acf_changed":false,"jetpack_post_was_ever_published":false,"footnotes":""},"categories":[],"class_list":["post-7219","knowledge","type-knowledge","status-publish","format-standard","has-post-thumbnail","hentry"],"acf":[],"aioseo_notices":[],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wpmake.jp\/contents\/wp-json\/wp\/v2\/knowledge\/7219"}],"collection":[{"href":"https:\/\/wpmake.jp\/contents\/wp-json\/wp\/v2\/knowledge"}],"about":[{"href":"https:\/\/wpmake.jp\/contents\/wp-json\/wp\/v2\/types\/knowledge"}],"author":[{"embeddable":true,"href":"https:\/\/wpmake.jp\/contents\/wp-json\/wp\/v2\/users\/1"}],"version-history":[{"count":8,"href":"https:\/\/wpmake.jp\/contents\/wp-json\/wp\/v2\/knowledge\/7219\/revisions"}],"predecessor-version":[{"id":7284,"href":"https:\/\/wpmake.jp\/contents\/wp-json\/wp\/v2\/knowledge\/7219\/revisions\/7284"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/wpmake.jp\/contents\/wp-json\/wp\/v2\/media\/7283"}],"wp:attachment":[{"href":"https:\/\/wpmake.jp\/contents\/wp-json\/wp\/v2\/media?parent=7219"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wpmake.jp\/contents\/wp-json\/wp\/v2\/categories?post=7219"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}