{"id":2854,"date":"2024-10-16T16:37:07","date_gmt":"2024-10-16T08:37:07","guid":{"rendered":"https:\/\/www.openbyt.com\/?p=2854"},"modified":"2024-10-17T19:39:17","modified_gmt":"2024-10-17T11:39:17","slug":"how-to-use-log-files-for-error-troubleshooting-in-your-wordpress-site-to-keep-your-website-running-smoothly","status":"publish","type":"post","link":"https:\/\/www.openbyt.com\/ja\/\u30ef\u30fc\u30c9\u30d7\u30ec\u30b9\u30b5\u30a4\u30c8\u306e\u30a8\u30e9\u30fc\u30c8\u30e9\u30d6\u30eb\u30b7\u30e5\u30fc\u30c6\u30a3","title":{"rendered":"WordPress\u30b5\u30a4\u30c8\u306e\u30a8\u30e9\u30fc\u30c8\u30e9\u30d6\u30eb\u30b7\u30e5\u30fc\u30c6\u30a3\u30f3\u30b0\u306b\u30ed\u30b0\u30d5\u30a1\u30a4\u30eb\u3092\u4f7f\u7528\u3057\u3001\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8\u306e\u30b9\u30e0\u30fc\u30ba\u306a\u904b\u55b6\u3092\u7dad\u6301\u3059\u308b\u65b9\u6cd5"},"content":{"rendered":"<p>WordPress\u30b5\u30a4\u30c8\u306e\u7ba1\u7406\u306b\u306f\u3001\u4e88\u671f\u305b\u306c\u8ab2\u984c\u3084\u6280\u8853\u7684\u306a\u554f\u984c\u304c\u3064\u304d\u3082\u306e\u3067\u3059\u3002\u3044\u304f\u3064\u304b\u5b9f\u4f8b\u3092\u6319\u3052\u3066\u307f\u307e\u3057\u3087\u3046\uff1a\u65b0\u3057\u3044\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u5f8c\u3001\u7a81\u7136\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8\u304c\u771f\u3063\u767d\u306a\u753b\u9762\u306b\u306a\u3063\u305f\u3068\u3057\u307e\u3059\u3002\u3053\u308c\u306f\u30d7\u30e9\u30b0\u30a4\u30f3\u306e\u7af6\u5408\u304c\u539f\u56e0\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002\u30ed\u30b0\u30d5\u30a1\u30a4\u30eb\u3092\u30c1\u30a7\u30c3\u30af\u3059\u308b\u3053\u3068\u3067\u3001\u30d7\u30e9\u30b0\u30a4\u30f3\u304cPHP\u30a8\u30e9\u30fc\u306e\u539f\u56e0\u3067\u3042\u308b\u3053\u3068\u3092\u7279\u5b9a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u5225\u306e\u3088\u304f\u3042\u308b\u30b7\u30ca\u30ea\u30aa\u306f\u3001\u30b5\u30a4\u30c8\u304c\u30e1\u30e2\u30ea\u5236\u9650\u306e\u554f\u984c\u306b\u906d\u9047\u3057\u305f\u3068\u304d\u3067\u3059\u3002 <strong>wp-config.php<\/strong> \u30d5\u30a1\u30a4\u30eb<\/p><ol class=\"wp-block-list\"><li>\u3055\u3089\u306b\u3001'Call to undefined function' \u306e\u3088\u3046\u306a\u30a8\u30e9\u30fc\u306f\u3001\u30d7\u30e9\u30b0\u30a4\u30f3\u3084\u30c6\u30fc\u30de\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u4e0d\u5b8c\u5168\u306a\u305f\u3081\u306b\u3001\u5fc5\u8981\u306a\u95a2\u6570\u304c\u898b\u3064\u304b\u3089\u306a\u3044\u3053\u3068\u3092\u793a\u3057\u3066\u3044\u307e\u3059\u3002\u30ed\u30b0\u30d5\u30a1\u30a4\u30eb\u3092\u30c1\u30a7\u30c3\u30af\u3059\u308b\u3053\u3068\u3067\u3001PHP\u30a8\u30e9\u30fc\u306e\u539f\u56e0\u3067\u3042\u308b\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u7279\u5b9a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u3053\u306e\u3088\u3046\u306a\u554f\u984c\u3092\u30c8\u30e9\u30d6\u30eb\u30b7\u30e5\u30fc\u30c6\u30a3\u30f3\u30b0\u3057\u3001\u4fee\u6b63\u3059\u308b\u6700\u3082\u52b9\u679c\u7684\u306a\u65b9\u6cd5\u306e1\u3064\u306f\u3001\u30ed\u30b0\u30d5\u30a1\u30a4\u30eb\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3067\u3059\u3002\u30ed\u30b0\u30d5\u30a1\u30a4\u30eb\u306f\u3001\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8\u306e\u821e\u53f0\u88cf\u3067\u4f55\u304c\u8d77\u3053\u3063\u3066\u3044\u308b\u306e\u304b\u306b\u3064\u3044\u3066\u306e\u8cb4\u91cd\u306a\u6d1e\u5bdf\u3092\u63d0\u4f9b\u3057\u307e\u3059\u3002\u3053\u306e\u30ac\u30a4\u30c9\u3067\u306f\u3001\u30ed\u30b0\u30d5\u30a1\u30a4\u30eb\u3092\u4f7f\u7528\u3057\u3066 WordPress \u30b5\u30a4\u30c8\u306e\u30a8\u30e9\u30fc\u3092\u7279\u5b9a\u3057\u3001\u89e3\u6c7a\u3059\u308b\u65b9\u6cd5\u3092\u8aac\u660e\u3057\u307e\u3059\u3002\u307e\u305f\u3001\u5404\u30b9\u30c6\u30c3\u30d7\u3092\u3088\u308a\u7c21\u5358\u306b\u5b9f\u884c\u3067\u304d\u308b\u3088\u3046\u3001\u8996\u899a\u7684\u306a\u8aac\u660e\u3082\u884c\u3044\u307e\u3059\u3002<\/li><\/ol><figure class=\"wp-block-image size-full\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1024\" height=\"1024\" src=\"https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/6b076ce8-79ab-4c92-98c7-c09b8b0bd232.webp\" alt=\"\" class=\"wp-image-2873\" srcset=\"https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/6b076ce8-79ab-4c92-98c7-c09b8b0bd232.webp 1024w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/6b076ce8-79ab-4c92-98c7-c09b8b0bd232-600x600.webp 600w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/6b076ce8-79ab-4c92-98c7-c09b8b0bd232-100x100.webp 100w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/6b076ce8-79ab-4c92-98c7-c09b8b0bd232-300x300.webp 300w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/6b076ce8-79ab-4c92-98c7-c09b8b0bd232-150x150.webp 150w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/6b076ce8-79ab-4c92-98c7-c09b8b0bd232-768x768.webp 768w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/6b076ce8-79ab-4c92-98c7-c09b8b0bd232-96x96.webp 96w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure><h2 class=\"wp-block-heading\">\u30b3\u30fc\u30c9\u30b9\u30cb\u30da\u30c3\u30c8\u30ea\u30dd\u30b8\u30c8\u30ea\u304c\u5fc5\u8981\u306a\u7406\u7531<\/h2><p>\u3042\u306a\u305f\u304c\u8907\u6570\u306eWordPress\u30b5\u30a4\u30c8\u306b\u643a\u308f\u3063\u3066\u3044\u308b\u3068\u3057\u307e\u3059\u3002\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3054\u3068\u306b\u3001\u30ed\u30b0\u30a4\u30f3\u30da\u30fc\u30b8\u3092\u5909\u66f4\u3059\u308b\u7279\u5b9a\u306e\u95a2\u6570\u3092\u8ffd\u52a0\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u305d\u306e\u30b9\u30cb\u30da\u30c3\u30c8\u3092\u898b\u3064\u3051\u308b\u305f\u3081\u306b Stack Overflow \u3092\u691c\u7d22\u3057\u305f\u308a\u3001\u904e\u53bb\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u30d6\u30e9\u30a6\u30ba\u3057\u305f\u308a\u3059\u308b\u4ee3\u308f\u308a\u306b\u3001\u4e00\u5143\u5316\u3055\u308c\u305f\u30ea\u30dd\u30b8\u30c8\u30ea\u304c\u3042\u308c\u3070\u3001\u7c21\u5358\u306b\u30b3\u30fc\u30c9\u3092\u5f15\u304d\u51fa\u3057\u3066\u6570\u5206\u3067\u5b9f\u88c5\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p><p>\u30b3\u30fc\u30c9\u30fb\u30b9\u30cb\u30da\u30c3\u30c8\u30fb\u30ea\u30dd\u30b8\u30c8\u30ea\u304c\u5f79\u7acb\u3061\u307e\u3059\uff1a<\/p><ul class=\"wp-block-list\"><li><strong>\u6642\u9593\u306e\u7bc0\u7d04<\/strong>:\u3082\u3046\u3001\u534a\u5e74\u524d\u306b\u66f8\u3044\u305f\u95a2\u6570\u3092\u30a6\u30a7\u30d6\u3084\u30cf\u30fc\u30c9\u30c7\u30a3\u30b9\u30af\u304b\u3089\u63a2\u3059\u5fc5\u8981\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/li>\n\n<li><strong>\u52b9\u7387\u306e\u5411\u4e0a<\/strong>:\u30c6\u30b9\u30c8\u6e08\u307f\u306e\u30b3\u30fc\u30c9\u3092\u518d\u5229\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u30b5\u30a4\u30c8\u304c\u4e00\u8cab\u3057\u3066\u6a5f\u80fd\u3057\u3001\u30c7\u30d0\u30c3\u30b0\u3092\u6700\u5c0f\u9650\u306b\u6291\u3048\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/li>\n\n<li><strong>\u54c1\u8cea\u306e\u7dad\u6301<\/strong>:\u30b9\u30cb\u30da\u30c3\u30c8\u3092\u6587\u66f8\u5316\u3059\u308b\u3053\u3068\u306f\u3001\u30b9\u30cb\u30da\u30c3\u30c8\u3092\u3042\u306a\u305f\u306e\u6a19\u6e96\u306b\u5408\u308f\u305b\u3001\u5fc5\u8981\u306b\u5fdc\u3058\u3066\u7c21\u5358\u306b\u4fee\u6b63\u3067\u304d\u308b\u3053\u3068\u3092\u610f\u5473\u3057\u307e\u3059\u3002<\/li><\/ul><figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1024\" height=\"1024\" src=\"https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-16-15.47.41-An-illustration-of-a-WordPress-developer-at-their-desk-working-on-multiple-WordPress-sites.-The-developer-looks-focused-and-efficient-pulling-up-cod.webp\" alt=\"\" class=\"wp-image-2876\" srcset=\"https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-16-15.47.41-An-illustration-of-a-WordPress-developer-at-their-desk-working-on-multiple-WordPress-sites.-The-developer-looks-focused-and-efficient-pulling-up-cod.webp 1024w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-16-15.47.41-An-illustration-of-a-WordPress-developer-at-their-desk-working-on-multiple-WordPress-sites.-The-developer-looks-focused-and-efficient-pulling-up-cod-600x600.webp 600w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-16-15.47.41-An-illustration-of-a-WordPress-developer-at-their-desk-working-on-multiple-WordPress-sites.-The-developer-looks-focused-and-efficient-pulling-up-cod-100x100.webp 100w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-16-15.47.41-An-illustration-of-a-WordPress-developer-at-their-desk-working-on-multiple-WordPress-sites.-The-developer-looks-focused-and-efficient-pulling-up-cod-300x300.webp 300w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-16-15.47.41-An-illustration-of-a-WordPress-developer-at-their-desk-working-on-multiple-WordPress-sites.-The-developer-looks-focused-and-efficient-pulling-up-cod-150x150.webp 150w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-16-15.47.41-An-illustration-of-a-WordPress-developer-at-their-desk-working-on-multiple-WordPress-sites.-The-developer-looks-focused-and-efficient-pulling-up-cod-768x768.webp 768w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-16-15.47.41-An-illustration-of-a-WordPress-developer-at-their-desk-working-on-multiple-WordPress-sites.-The-developer-looks-focused-and-efficient-pulling-up-cod-96x96.webp 96w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure><h2 class=\"wp-block-heading\">\u72ec\u81ea\u306e\u30b3\u30fc\u30c9\u30fb\u30b9\u30cb\u30da\u30c3\u30c8\u30fb\u30ea\u30dd\u30b8\u30c8\u30ea\u306e\u8a2d\u5b9a<\/h2><p>\u30b3\u30fc\u30c9\u30b9\u30cb\u30da\u30c3\u30c8\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u6574\u7406\u3059\u308b\u65b9\u6cd5\u306f\u3001\u30c6\u30ad\u30b9\u30c8\u30a8\u30c7\u30a3\u30bf\u306e\u3088\u3046\u306a\u30b7\u30f3\u30d7\u30eb\u306a\u30c4\u30fc\u30eb\u304b\u3089\u3001GitHub \u306e\u3088\u3046\u306a\u3088\u308a\u5805\u7262\u306a\u30bd\u30ea\u30e5\u30fc\u30b7\u30e7\u30f3\u3001\u3042\u308b\u3044\u306f\u5c02\u7528\u306e\u30b3\u30fc\u30c9\u30b9\u30cb\u30da\u30c3\u30c8\u30e9\u30a4\u30d6\u30e9\u30ea\u307e\u3067\u8907\u6570\u3042\u308a\u307e\u3059\u3002<\/p><h3 class=\"wp-block-heading\">1.\u30af\u30e9\u30a6\u30c9\u30d9\u30fc\u30b9\u306e\u30ce\u30fc\u30c8\u30a2\u30d7\u30ea\u306e\u4f7f\u7528<\/h3><p>\u30b3\u30fc\u30c9\u30fb\u30b9\u30cb\u30da\u30c3\u30c8\u30fb\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u69cb\u7bc9\u3092\u59cb\u3081\u308b\u6700\u3082\u7c21\u5358\u306a\u65b9\u6cd5\u306f\u3001\u30af\u30e9\u30a6\u30c9\u30d9\u30fc\u30b9\u306e\u30ce\u30fc\u30c8\u4f5c\u6210\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u4f7f\u3046\u3053\u3068\u3067\u3059\u3002\u3053\u308c\u306f\u521d\u5fc3\u8005\u3084\u3001\u30b3\u30fc\u30c9\u7ba1\u7406\u306b\u8efd\u91cf\u306a\u30a2\u30d7\u30ed\u30fc\u30c1\u3092\u597d\u3080\u4eba\u306b\u6700\u9069\u3067\u3059\u3002<\/p><figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1024\" height=\"1024\" src=\"https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/3d1bc340-18ee-43f5-ad03-0c76477812b2.webp\" alt=\"\" class=\"wp-image-2882\" srcset=\"https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/3d1bc340-18ee-43f5-ad03-0c76477812b2.webp 1024w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/3d1bc340-18ee-43f5-ad03-0c76477812b2-600x600.webp 600w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/3d1bc340-18ee-43f5-ad03-0c76477812b2-100x100.webp 100w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/3d1bc340-18ee-43f5-ad03-0c76477812b2-300x300.webp 300w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/3d1bc340-18ee-43f5-ad03-0c76477812b2-150x150.webp 150w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/3d1bc340-18ee-43f5-ad03-0c76477812b2-768x768.webp 768w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/3d1bc340-18ee-43f5-ad03-0c76477812b2-96x96.webp 96w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure><p>\u591a\u304f\u306e\u958b\u767a\u8005\u306f <strong>\u6982\u5ff5<\/strong>, <strong>\u30a8\u30d0\u30fc\u30ce\u30fc\u30c8<\/strong>\u307e\u305f\u306f <strong>\u30b0\u30fc\u30b0\u30eb\u30ad\u30fc\u30d7<\/strong> \u3092\u4f7f\u7528\u3057\u3066\u30b3\u30fc\u30c9\u30fb\u30b9\u30cb\u30da\u30c3\u30c8\u30fb\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u7ba1\u7406\u3057\u3066\u3044\u307e\u3059\u3002\u305d\u308c\u305e\u308c\u306e\u30c4\u30fc\u30eb\u306b\u306f\u9577\u6240\u3068\u77ed\u6240\u304c\u3042\u308a\u307e\u3059\uff1a<\/p><ul class=\"wp-block-list\"><li><strong>\u6982\u5ff5<\/strong>:\u8c4a\u5bcc\u306a\u6a5f\u80fd\u30bb\u30c3\u30c8\u3068\u30b3\u30f3\u30c6\u30f3\u30c4\u306e\u6574\u7406\u306b\u512a\u308c\u3066\u3044\u307e\u3059\u304c\u3001\u5c0f\u898f\u6a21\u306a\u56f3\u66f8\u9928\u306b\u3068\u3063\u3066\u306f\u5fc5\u8981\u4ee5\u4e0a\u306b\u8907\u96d1\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/li>\n\n<li><strong>\u30a8\u30d0\u30fc\u30ce\u30fc\u30c8<\/strong>:\u30e6\u30fc\u30b6\u30fc\u30d5\u30ec\u30f3\u30c9\u30ea\u30fc\u3067\u30e1\u30e2\u7ba1\u7406\u6a5f\u80fd\u304c\u5145\u5b9f\u3057\u3066\u3044\u307e\u3059\u304c\u3001\u9ad8\u5ea6\u306a\u66f8\u5f0f\u8a2d\u5b9a\u304c\u5236\u9650\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/li>\n\n<li><strong>\u30b0\u30fc\u30b0\u30eb\u30ad\u30fc\u30d7<\/strong>:\u8efd\u91cf\u3067\u4f7f\u3044\u3084\u3059\u3044\u304c\u3001\u5f37\u529b\u306a\u5206\u985e\u30fb\u6574\u7406\u30aa\u30d7\u30b7\u30e7\u30f3\u304c\u306a\u3044\u3082\u306e\u3002\u9069\u5207\u306a\u30c4\u30fc\u30eb\u306e\u9078\u629e\u306f\u3001\u3042\u306a\u305f\u306e\u30cb\u30fc\u30ba\u6b21\u7b2c\u3067\u3059\uff1aNotion\u306f\u69cb\u9020\u5316\u304c\u5fc5\u8981\u306a\u5834\u5408\u306b\u3001Evernote\u306f\u7d20\u65e9\u304f\u30e1\u30e2\u3092\u53d6\u308b\u5834\u5408\u306b\u3001Google Keep\u306f\u975e\u5e38\u306b\u57fa\u672c\u7684\u306a\u30b9\u30cb\u30da\u30c3\u30c8\u306e\u4fdd\u5b58\u306b\u9069\u3057\u3066\u3044\u307e\u3059\u3002\u3069\u306e\u30c4\u30fc\u30eb\u306b\u3082\u9577\u6240\u3068\u77ed\u6240\u304c\u3042\u308a\u307e\u3059\uff1a<\/li>\n\n<li><strong>\u6982\u5ff5<\/strong>:\u8c4a\u5bcc\u306a\u6a5f\u80fd\u30bb\u30c3\u30c8\u3068\u30b3\u30f3\u30c6\u30f3\u30c4\u306e\u6574\u7406\u306b\u512a\u308c\u3066\u3044\u307e\u3059\u304c\u3001\u5c0f\u898f\u6a21\u306a\u56f3\u66f8\u9928\u306b\u3068\u3063\u3066\u306f\u5fc5\u8981\u4ee5\u4e0a\u306b\u8907\u96d1\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/li>\n\n<li><strong>\u30a8\u30d0\u30fc\u30ce\u30fc\u30c8<\/strong>:\u30e6\u30fc\u30b6\u30fc\u30d5\u30ec\u30f3\u30c9\u30ea\u30fc\u3067\u30e1\u30e2\u7ba1\u7406\u6a5f\u80fd\u304c\u5145\u5b9f\u3057\u3066\u3044\u307e\u3059\u304c\u3001\u9ad8\u5ea6\u306a\u66f8\u5f0f\u8a2d\u5b9a\u304c\u5236\u9650\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/li>\n\n<li><strong>\u30b0\u30fc\u30b0\u30eb\u30ad\u30fc\u30d7<\/strong>:\u8efd\u91cf\u3067\u4f7f\u3044\u3084\u3059\u3044\u3067\u3059\u304c\u3001\u5f37\u529b\u306a\u5206\u985e\u3068\u6574\u7406\u30aa\u30d7\u30b7\u30e7\u30f3\u304c\u3042\u308a\u307e\u305b\u3093\u3002\u3053\u308c\u3089\u306e\u30c4\u30fc\u30eb\u3067\u306f\u3001\u30b9\u30cb\u30da\u30c3\u30c8\u3092\u30bf\u30b0\uff08\u4f8b\uff1a\"functions.php\"\u3001\"custom post type\"\u3001\"shortcodes\"\uff09\u3067\u5206\u985e\u3057\u3001\u691c\u7d22\u3057\u3084\u3059\u304f\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u4ee5\u4e0b\u306f\u305d\u306e\u4f8b\u3067\u3059\uff1a<\/li>\n\n<li><strong>\u30bf\u30a4\u30c8\u30eb<\/strong>:\u30ab\u30b9\u30bf\u30e0\u30ed\u30b0\u30a4\u30f3\u30ea\u30c0\u30a4\u30ec\u30af\u30c8<\/li>\n\n<li><strong>\u30ab\u30c6\u30b4\u30ea\u30fc<\/strong>:\u30e6\u30fc\u30b6\u30fc\u7ba1\u7406<\/li><\/ul><h3 class=\"wp-block-heading\">2.\u30d0\u30fc\u30b8\u30e7\u30f3\u7ba1\u7406 <code>\u30ae\u30c3\u30c8\u30cf\u30d6<\/code> \u307e\u305f\u306f <code>\u30ae\u30c3\u30c8\u30e9\u30dc<\/code><\/h3><p>\u30b9\u30cb\u30da\u30c3\u30c8\u3092 <strong>\u30ae\u30c3\u30c8\u30cf\u30d6<\/strong> \u307e\u305f\u306f <strong>\u30ae\u30c3\u30c8\u30e9\u30dc<\/strong> \u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002\u30d0\u30fc\u30b8\u30e7\u30f3\u7ba1\u7406\u306e\u521d\u5fc3\u8005\u306a\u3089\u3001\u307e\u305a GitHub \u306e\u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u4f5c\u6210\u3057\u3001\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u306b Git \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3001\u6b21\u306e\u3088\u3046\u306a\u57fa\u672c\u7684\u306a Git \u30b3\u30de\u30f3\u30c9\u3092\u899a\u3048\u308b\u3053\u3068\u304b\u3089\u59cb\u3081\u307e\u3057\u3087\u3046\u3002 <strong>\u521d\u671f\u5316<\/strong> (\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u521d\u671f\u5316\u3057\u307e\u3059\uff09\u3001 <strong>\u30ae\u30c3\u30c8\u306e\u8ffd\u52a0<\/strong> (\u30b9\u30c6\u30fc\u30b8\u30f3\u30b0\u306b\u30d5\u30a1\u30a4\u30eb\u3092\u8ffd\u52a0\u3057\u307e\u3059\uff09\u3001 <strong>\u30ae\u30c3\u30c8\u306e\u30b3\u30df\u30c3\u30c8<\/strong> (\u5909\u66f4\u3092\u4fdd\u5b58\u3057\u307e\u3059\uff09\u3001\u305d\u3057\u3066 <strong>\u30ae\u30c3\u30c8\u30d7\u30c3\u30b7\u30e5<\/strong> (GitHub \u306b\u5909\u66f4\u3092\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3059\u308b\u305f\u3081)\u3002\u3055\u3089\u306b\u3001\u5b89\u5168\u306b\u5909\u66f4\u3092\u8a66\u305b\u308b\u30d6\u30e9\u30f3\u30c1\u306b\u3082\u6163\u308c\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002\u3053\u306e\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u306b\u3088\u3063\u3066\u3001\u5b89\u5168\u306a\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3092\u53d6\u308b\u3053\u3068\u304c\u3067\u304d\u3001\u6642\u9593\u306e\u7d4c\u904e\u3068\u3068\u3082\u306b\u5909\u66f4\u3092\u8ffd\u8de1\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002\u30d0\u30fc\u30b8\u30e7\u30f3\u7ba1\u7406\u306e\u521d\u5fc3\u8005\u306a\u3089\u3001\u307e\u305a GitHub \u306e\u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u4f5c\u6210\u3057\u3001\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u306b Git \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3001\u6b21\u306e\u3088\u3046\u306a\u57fa\u672c\u7684\u306a Git \u30b3\u30de\u30f3\u30c9\u3092\u899a\u3048\u307e\u3057\u3087\u3046\u3002 <strong>\u521d\u671f\u5316<\/strong> (\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u521d\u671f\u5316\u3057\u307e\u3059\uff09\u3001 <strong>\u30ae\u30c3\u30c8\u306e\u8ffd\u52a0<\/strong> (\u30b9\u30c6\u30fc\u30b8\u30f3\u30b0\u306b\u30d5\u30a1\u30a4\u30eb\u3092\u8ffd\u52a0\u3057\u307e\u3059\uff09\u3001 <strong>\u30ae\u30c3\u30c8\u306e\u30b3\u30df\u30c3\u30c8<\/strong> (\u5909\u66f4\u3092\u4fdd\u5b58\u3057\u307e\u3059\uff09\u3001\u305d\u3057\u3066 <strong>\u30ae\u30c3\u30c8\u30d7\u30c3\u30b7\u30e5<\/strong> (\u5909\u66f4\u5185\u5bb9\u3092 GitHub \u306b\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3057\u307e\u3059\uff09\u3002\u3053\u306e\u8a2d\u5b9a\u306f\u3001\u5b89\u5168\u306a\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3092\u53d6\u308b\u3060\u3051\u3067\u306a\u304f\u3001\u6642\u9593\u306e\u7d4c\u904e\u306b\u3088\u308b\u5909\u66f4\u3092\u8ffd\u8de1\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002\u3053\u308c\u306f\u3001\u5b89\u5168\u306a\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3092\u53d6\u308b\u3060\u3051\u3067\u306a\u304f<em>\u3060\u304b\u3089<\/em> \u3092\u4f7f\u3048\u3070\u3001\u6642\u9593\u306e\u7d4c\u904e\u306b\u4f34\u3046\u5909\u66f4\u3092\u8ffd\u8de1\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p><figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"1024\" src=\"https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-16-16.09.40-A-WordPress-developer-using-GitHub-to-manage-code-snippets-sitting-at-a-modern-workspace.-The-laptop-screen-displays-Git-commands-like-git-init-g.webp\" alt=\"\" class=\"wp-image-2893\" srcset=\"https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-16-16.09.40-A-WordPress-developer-using-GitHub-to-manage-code-snippets-sitting-at-a-modern-workspace.-The-laptop-screen-displays-Git-commands-like-git-init-g.webp 1024w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-16-16.09.40-A-WordPress-developer-using-GitHub-to-manage-code-snippets-sitting-at-a-modern-workspace.-The-laptop-screen-displays-Git-commands-like-git-init-g-600x600.webp 600w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-16-16.09.40-A-WordPress-developer-using-GitHub-to-manage-code-snippets-sitting-at-a-modern-workspace.-The-laptop-screen-displays-Git-commands-like-git-init-g-100x100.webp 100w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-16-16.09.40-A-WordPress-developer-using-GitHub-to-manage-code-snippets-sitting-at-a-modern-workspace.-The-laptop-screen-displays-Git-commands-like-git-init-g-300x300.webp 300w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-16-16.09.40-A-WordPress-developer-using-GitHub-to-manage-code-snippets-sitting-at-a-modern-workspace.-The-laptop-screen-displays-Git-commands-like-git-init-g-150x150.webp 150w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-16-16.09.40-A-WordPress-developer-using-GitHub-to-manage-code-snippets-sitting-at-a-modern-workspace.-The-laptop-screen-displays-Git-commands-like-git-init-g-768x768.webp 768w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-16-16.09.40-A-WordPress-developer-using-GitHub-to-manage-code-snippets-sitting-at-a-modern-workspace.-The-laptop-screen-displays-Git-commands-like-git-init-g-96x96.webp 96w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure><p>\u305f\u3068\u3048\u3070 <code>\u30ef\u30fc\u30c9\u30d7\u30ec\u30b9\u30cb\u30da\u30c3\u30c8<\/code> \u3092\u4f5c\u6210\u3057\u3001\u3055\u307e\u3056\u307e\u306a\u30d5\u30a9\u30eb\u30c0\u306b\u6574\u7406\u3057\u307e\u3059\uff1a<\/p><ul class=\"wp-block-list\"><li><strong>\u30c6\u30fc\u30de\u6a5f\u80fd<\/strong>:\u30c6\u30fc\u30de\u306b\u95a2\u9023\u3059\u308b\u30b9\u30cb\u30da\u30c3\u30c8<\/li>\n\n<li><strong>\u30b7\u30e7\u30fc\u30c8\u30b3\u30fc\u30c9<\/strong>:\u69d8\u3005\u306a\u6a5f\u80fd\u306e\u305f\u3081\u306e\u30ab\u30b9\u30bf\u30e0\u30b7\u30e7\u30fc\u30c8\u30b3\u30fc\u30c9<\/li>\n\n<li><strong>\u7ba1\u7406\u8005\u30ab\u30b9\u30bf\u30de\u30a4\u30ba<\/strong>:WordPress\u306e\u7ba1\u7406\u753b\u9762\u3092\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3059\u308b\u30b3\u30fc\u30c9<\/li><\/ul><p>\u5178\u578b\u7684\u306a\u30d5\u30a9\u30eb\u30c0\u306f\u6b21\u306e\u3088\u3046\u306a\u3082\u306e\u3067\u3059\uff1a<\/p><pre class=\"wp-block-preformatted\">\u30ef\u30fc\u30c9\u30d7\u30ec\u30b9\u30b9\u30cb\u30da\u30c3\u30c8<br>  |-- \u30c6\u30fc\u30de\u6a5f\u80fd<br>       -- enqueue-scripts.php<br>       |-- \u30ab\u30b9\u30bf\u30e0\u30d5\u30c3\u30bf\u30fc.php<br>  |-- \u30b7\u30e7\u30fc\u30c8\u30b3\u30fc\u30c9<br>       |-- youtube-embed.php<br>  |-- admin-customization\/<br>       |-- \u30ab\u30b9\u30bf\u30e0\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9-\u30a6\u30a3\u30b8\u30a7\u30c3\u30c8.php<\/pre><figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"1024\" src=\"https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/4e2f83b2-2c0c-4e95-9eb1-c8c18f210cbc.webp\" alt=\"\" class=\"wp-image-2895\" srcset=\"https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/4e2f83b2-2c0c-4e95-9eb1-c8c18f210cbc.webp 1024w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/4e2f83b2-2c0c-4e95-9eb1-c8c18f210cbc-600x600.webp 600w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/4e2f83b2-2c0c-4e95-9eb1-c8c18f210cbc-100x100.webp 100w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/4e2f83b2-2c0c-4e95-9eb1-c8c18f210cbc-300x300.webp 300w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/4e2f83b2-2c0c-4e95-9eb1-c8c18f210cbc-150x150.webp 150w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/4e2f83b2-2c0c-4e95-9eb1-c8c18f210cbc-768x768.webp 768w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/4e2f83b2-2c0c-4e95-9eb1-c8c18f210cbc-96x96.webp 96w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure><p>Git \u3092\u4f7f\u3048\u3070\u3001\u4ed6\u306e\u958b\u767a\u8005\u3068\u5354\u529b\u3057\u3066\u5171\u6709\u30b9\u30cb\u30da\u30c3\u30c8\u30fb\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u4f5c\u6210\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002\u30c7\u30fc\u30bf\u306e\u640d\u5931\u3092\u907f\u3051\u308b\u305f\u3081\u306b\u3001\u9069\u5207\u306a\u30a2\u30af\u30bb\u30b9\u5236\u5fa1\u3092\u8a2d\u5b9a\u3057\u3001\u5b9a\u671f\u7684\u306b\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3092\u53d6\u308b\u3053\u3068\u306b\u3088\u3063\u3066\u3001\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u4fdd\u8b77\u3059\u308b\u3053\u3068\u3092\u5fd8\u308c\u306a\u3044\u3067\u304f\u3060\u3055\u3044\u3002\u30d6\u30e9\u30f3\u30c1\u4fdd\u8b77\u306a\u3069\u306e\u6a5f\u80fd\u3092\u4f7f\u3046\u3053\u3068\u3067\u3001\u4e0d\u6b63\u306a\u5909\u66f4\u3092\u9632\u304e\u3001\u30b3\u30fc\u30c9\u30ea\u30dd\u30b8\u30c8\u30ea\u306e\u54c1\u8cea\u3092\u7dad\u6301\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p><h3 class=\"wp-block-heading\"><strong>3.WordPress\u30b9\u30cb\u30da\u30c3\u30c8\u7ba1\u7406\u30d7\u30e9\u30b0\u30a4\u30f3<\/strong><\/h3><p>\u306e\u3088\u3046\u306a\u30d7\u30e9\u30b0\u30a4\u30f3\u3082\u3042\u308a\u307e\u3059\u3002 <strong>\u30b3\u30fc\u30c9\u30b9\u30cb\u30da\u30c3\u30c8<\/strong> \u307e\u305f\u306f <strong>WPCodeBox<\/strong> \u30b9\u30cb\u30da\u30c3\u30c8\u3092WordPress\u306e\u7ba1\u7406\u753b\u9762\u3067\u76f4\u63a5\u4fdd\u5b58\u3001\u7ba1\u7406\u3001\u5b9f\u884c\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u3064\u307e\u308a\u3001\u30c6\u30fc\u30de\u306e <code>functions.php<\/code> \u30d5\u30a1\u30a4\u30eb\u306b\u4fdd\u5b58\u3055\u308c\u3001\u30c6\u30fc\u30de\u3092\u5909\u66f4\u3057\u3066\u3082\u30b9\u30cb\u30da\u30c3\u30c8\u306f\u6b8b\u308a\u307e\u3059\u3002<\/p><p>\u4f8b\u3048\u3070\u3001\u6295\u7a3f\u306b\u30ab\u30b9\u30bf\u30e0\u629c\u7c8b\u306e\u9577\u3055\u3092\u983b\u7e41\u306b\u8ffd\u52a0\u3059\u308b\u5834\u5408\u3001Code Snippets\u30d7\u30e9\u30b0\u30a4\u30f3\u306b\u8ffd\u52a0\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p><pre class=\"wp-block-preformatted\">\u95a2\u6570custom_excerpt_length($length){\u300d\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<br>    return 20; \/\/ \u629c\u7c8b\u306e\u9577\u3055\u309220\u30ef\u30fc\u30c9\u306b\u8a2d\u5b9a\u3057\u307e\u3059\u3002<br>}<br>add_filter('excerpt_length','custom_excerpt_length')\uff1b<br><br><\/pre><figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"1024\" src=\"https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/54f92488-93f1-4f91-8114-046625122e30.webp\" alt=\"\" class=\"wp-image-2896\" srcset=\"https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/54f92488-93f1-4f91-8114-046625122e30.webp 1024w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/54f92488-93f1-4f91-8114-046625122e30-600x600.webp 600w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/54f92488-93f1-4f91-8114-046625122e30-100x100.webp 100w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/54f92488-93f1-4f91-8114-046625122e30-300x300.webp 300w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/54f92488-93f1-4f91-8114-046625122e30-150x150.webp 150w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/54f92488-93f1-4f91-8114-046625122e30-768x768.webp 768w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/54f92488-93f1-4f91-8114-046625122e30-96x96.webp 96w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure><p>Code Snippets\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u4f7f\u7528\u3059\u308b\u3068\u3001\u3053\u306e\u30b9\u30cb\u30da\u30c3\u30c8\u3092\u300cCustom Excerpt Length\u300d\u3068\u3057\u3066\u30e9\u30d9\u30eb\u4ed8\u3051\u3057\u3001\u5fc5\u8981\u306b\u5fdc\u3058\u3066\u6709\u52b9\u307e\u305f\u306f\u7121\u52b9\u306b\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p><h3 class=\"wp-block-heading\">\u30b3\u30fc\u30c9\u30b9\u30cb\u30da\u30c3\u30c8\u30ea\u30dd\u30b8\u30c8\u30ea\u306e\u30d9\u30b9\u30c8\u30d7\u30e9\u30af\u30c6\u30a3\u30b9<\/h3><figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"1024\" src=\"https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/0c8f11ee-95ff-4752-a3f3-98adf167c2c0.webp\" alt=\"\" class=\"wp-image-2897\" srcset=\"https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/0c8f11ee-95ff-4752-a3f3-98adf167c2c0.webp 1024w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/0c8f11ee-95ff-4752-a3f3-98adf167c2c0-600x600.webp 600w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/0c8f11ee-95ff-4752-a3f3-98adf167c2c0-100x100.webp 100w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/0c8f11ee-95ff-4752-a3f3-98adf167c2c0-300x300.webp 300w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/0c8f11ee-95ff-4752-a3f3-98adf167c2c0-150x150.webp 150w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/0c8f11ee-95ff-4752-a3f3-98adf167c2c0-768x768.webp 768w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/0c8f11ee-95ff-4752-a3f3-98adf167c2c0-96x96.webp 96w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure><p>\u3088\u304f\u3042\u308b\u843d\u3068\u3057\u7a74\u306f\u3001\u30ea\u30dd\u30b8\u30c8\u30ea\u304c\u7121\u79e9\u5e8f\u306b\u306a\u3063\u3066\u3044\u308b\u3053\u3068\u3067\u3059\u3002snippet1.php\u3084test-code.php\u3068\u3044\u3046\u540d\u524d\u306e\u30b9\u30cb\u30da\u30c3\u30c8\u304c\u8907\u6570\u3042\u308b\u3053\u3068\u3092\u60f3\u50cf\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002\u3053\u308c\u3089\u306e\u540d\u524d\u306f\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u3092\u63d0\u4f9b\u3057\u306a\u3044\u305f\u3081\u3001\u30b3\u30fc\u30c9\u3092\u958b\u3044\u3066\u8aad\u307e\u306a\u304f\u3066\u3082\u305d\u308c\u305e\u308c\u306e\u30b9\u30cb\u30da\u30c3\u30c8\u304c\u4f55\u3092\u3059\u308b\u306e\u304b\u3092\u77e5\u308b\u3053\u3068\u304c\u96e3\u3057\u304f\u306a\u308a\u307e\u3059\u3002\u4f8b\u3048\u3070\u3001function-test.php\u306e\u3088\u3046\u306a\u8ca7\u5f31\u306a\u540d\u524d\u306e\u30b9\u30cb\u30da\u30c3\u30c8\u306f\u3001custom-login-redirect.php\u306e\u3088\u3046\u306a\u8aac\u660e\u7684\u306a\u540d\u524d\u306b\u7f6e\u304d\u63db\u3048\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u4f8b\u3048\u3070\u3001snippet1.php\u3084test-code.php\u306e\u3088\u3046\u306a\u540d\u524d\u306e\u30b9\u30cb\u30da\u30c3\u30c8\u306f\u3001\u305d\u306e\u76ee\u7684\u306b\u3064\u3044\u3066\u306e\u60c5\u5831\u3092\u63d0\u4f9b\u3057\u306a\u3044\u305f\u3081\u3001\u518d\u5229\u7528\u304c\u96e3\u3057\u304f\u306a\u308a\u307e\u3059\u3002\u4ee3\u308f\u308a\u306b\u3001\u4ee5\u4e0b\u306e\u30d9\u30b9\u30c8\u30d7\u30e9\u30af\u30c6\u30a3\u30b9\u306b\u5f93\u3063\u3066\u3001\u30b9\u30cb\u30da\u30c3\u30c8\u3092\u898b\u3064\u3051\u3084\u3059\u304f\u3001\u7406\u89e3\u3057\u3084\u3059\u304f\u3057\u3066\u304f\u3060\u3055\u3044\uff1a<\/p><p>\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u3057\u305f\u3089\u3001\u3044\u304f\u3064\u304b\u306e\u30d9\u30b9\u30c8\u30d7\u30e9\u30af\u30c6\u30a3\u30b9\u306b\u5f93\u3046\u3053\u3068\u3067\u3001\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u6574\u7406\u3057\u3066\u6709\u7528\u306a\u72b6\u614b\u306b\u4fdd\u3064\u3053\u3068\u304c\u3067\u304d\u307e\u3059\uff1a<\/p><ol class=\"wp-block-list\"><li><strong>\u8aac\u660e\u7684\u306a\u30bf\u30a4\u30c8\u30eb\u306e\u4f7f\u7528<\/strong>:\u30dd\u30fc\u30c8\u30d5\u30a9\u30ea\u30aa\u7528\u306e\u30ab\u30b9\u30bf\u30e0\u6295\u7a3f\u30bf\u30a4\u30d7\u300d\u3084\u300c\u30ed\u30b0\u30a4\u30f3\u5f8c\u306e\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u300d\u3068\u3044\u3063\u305f\u30bf\u30a4\u30c8\u30eb\u3092\u3064\u3051\u308b\u3053\u3068\u3067\u3001\u305d\u308c\u305e\u308c\u306e\u30b9\u30cb\u30da\u30c3\u30c8\u304c\u4f55\u3092\u3059\u308b\u306e\u304b\u3092\u3059\u3050\u306b\u7406\u89e3\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/li>\n\n<li><strong>\u30b3\u30e1\u30f3\u30c8\u3092\u8ffd\u52a0<\/strong>:\u5404\u30b9\u30cb\u30da\u30c3\u30c8\u306e\u5192\u982d\u306b\u3001\u305d\u306e\u30b9\u30cb\u30da\u30c3\u30c8\u304c\u4f55\u3092\u3059\u308b\u306e\u304b\u3001\u3069\u306e\u3088\u3046\u306b\u4f7f\u3046\u306e\u304b\u3092\u8aac\u660e\u3059\u308b\u77ed\u3044\u8aac\u660e\u3092\u66f8\u3044\u3066\u304f\u3060\u3055\u3044\u3002\u4f8b\u3048\u3070<\/li><\/ol><pre class=\"wp-block-preformatted\">\/\/ \u30ed\u30b0\u30a4\u30f3\u5f8c\u3001\u30e6\u30fc\u30b6\u30fc\u3092\u30db\u30fc\u30e0\u30da\u30fc\u30b8\u306b\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u3057\u307e\u3059\u3002<br>function custom_login_redirect($redirect_to, $request, $user) { {.<br>    home_url() \u3092\u8fd4\u3057\u307e\u3059\uff1b<br>}<\/pre><ol start=\"1\" class=\"wp-block-list\"><li><strong>\u30ab\u30c6\u30b4\u30ea\u30fc\u5225<\/strong>:\u30b9\u30cb\u30da\u30c3\u30c8\u3092\u76ee\u7684\uff08\u7ba1\u7406\u8005\u3001\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u3001\u30ab\u30b9\u30bf\u30e0\u30d5\u30a3\u30fc\u30eb\u30c9\u306a\u3069\uff09\u306b\u5fdc\u3058\u3066\u30d5\u30a9\u30eb\u30c0\u3084\u30bf\u30b0\u306b\u5206\u985e\u3057\u307e\u3059\u3002<\/li>\n\n<li><strong>\u5b9a\u671f\u7684\u306a\u30c6\u30b9\u30c8<\/strong>:WordPress\u306e\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u306b\u3088\u308a\u3001\u53e4\u3044\u30b9\u30cb\u30da\u30c3\u30c8\u304c\u58ca\u308c\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\u5b9a\u671f\u7684\u306b\u30b9\u30cb\u30da\u30c3\u30c8\u3092\u30c6\u30b9\u30c8\u3057\u3001\u671f\u5f85\u901a\u308a\u306b\u52d5\u4f5c\u3059\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3059\u308b\u7fd2\u6163\u3092\u3064\u3051\u307e\u3057\u3087\u3046\u3002<\/li><\/ol><figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"1024\" src=\"https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/d66fecc1-a53f-4e4d-817e-e6ceee644125.webp\" alt=\"\" class=\"wp-image-2900\" srcset=\"https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/d66fecc1-a53f-4e4d-817e-e6ceee644125.webp 1024w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/d66fecc1-a53f-4e4d-817e-e6ceee644125-600x600.webp 600w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/d66fecc1-a53f-4e4d-817e-e6ceee644125-100x100.webp 100w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/d66fecc1-a53f-4e4d-817e-e6ceee644125-300x300.webp 300w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/d66fecc1-a53f-4e4d-817e-e6ceee644125-150x150.webp 150w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/d66fecc1-a53f-4e4d-817e-e6ceee644125-768x768.webp 768w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/d66fecc1-a53f-4e4d-817e-e6ceee644125-96x96.webp 96w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure><h3 class=\"wp-block-heading\">\u4f8b\u30ab\u30b9\u30bf\u30e0\u6295\u7a3f\u30bf\u30a4\u30d7\u30b9\u30cb\u30da\u30c3\u30c8\u306e\u4f5c\u6210<\/h3><p>\u306e\u30b9\u30cb\u30da\u30c3\u30c8\u3092\u4f5c\u308b\u4f8b\u3092\u898b\u3066\u307f\u307e\u3057\u3087\u3046\u3002 <strong>\u30ab\u30b9\u30bf\u30e0\u6295\u7a3f\u30bf\u30a4\u30d7<\/strong>.\u3053\u308c\u306f\u3001\u6295\u7a3f\u3084\u30da\u30fc\u30b8\u4ee5\u5916\u306e\u30b3\u30f3\u30c6\u30f3\u30c4\u30bf\u30a4\u30d7\u304c\u5fc5\u8981\u306aWordPress\u30b5\u30a4\u30c8\u3067\u306f\u4e00\u822c\u7684\u306a\u8981\u4ef6\u3067\u3059\u3002\u3053\u308c\u304c\u305d\u306e\u30b9\u30cb\u30da\u30c3\u30c8\u3067\u3059\uff1a<\/p><pre class=\"wp-block-preformatted\">\u95a2\u6570create_portfolio_post_type() {<br>    $args = array(<br>        'public' =&gt; true\u3001<br>        'label' =&gt; 'Portfolio'\u3001<br>        'supports' =&gt; array('title', 'editor', 'thumbnail')<br>    );<br>    register_post_type('portfolio', $args)\uff1b<br>}<br>add_action('init', 'create_portfolio_post_type')\uff1b<\/pre><p>\u3053\u306e\u30b9\u30cb\u30da\u30c3\u30c8\u3092\u30ea\u30dd\u30b8\u30c8\u30ea\u306ecustom-post-types\/\u3068\u3044\u3046\u30d5\u30a9\u30eb\u30c0\u306e\u4e0b\u306b\u4fdd\u5b58\u3057\u3066\u304a\u3051\u3070\u3001\u5fc5\u8981\u306a\u3068\u304d\u306b\u3044\u3064\u3067\u3082\u4f7f\u3048\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002\u4eca\u5ea6\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u304c\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8\u306b\u30dd\u30fc\u30c8\u30d5\u30a9\u30ea\u30aa\u30bb\u30af\u30b7\u30e7\u30f3\u3092\u4f5c\u308a\u305f\u3044\u3068\u8a00\u3063\u3066\u304d\u305f\u3089\u3001\u3059\u3050\u306b\u6e96\u5099\u3067\u304d\u307e\u3059\u3002<br><\/p><figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"1024\" src=\"https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/image-91.png\" alt=\"\" class=\"wp-image-2899\" srcset=\"https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/image-91.png 1024w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/image-91-600x600.png 600w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/image-91-100x100.png 100w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/image-91-300x300.png 300w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/image-91-150x150.png 150w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/image-91-768x768.png 768w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/image-91-96x96.png 96w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure><p><br><strong>\u7d50\u8ad6<\/strong><br>\u30b3\u30fc\u30c9\u30fb\u30b9\u30cb\u30da\u30c3\u30c8\u30fb\u30ea\u30dd\u30b8\u30c8\u30ea\u306e\u69cb\u7bc9\u306b\u306f\u3001\u6700\u521d\u306e\u52aa\u529b\u304c\u5fc5\u8981\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u304c\u3001\u9577\u3044\u76ee\u3067\u898b\u308c\u3070\u5831\u308f\u308c\u308b\u6295\u8cc7\u3067\u3059\u3002\u521d\u5fc3\u8005\u306b\u3068\u3063\u3066\u306f\u3001\u30af\u30e9\u30a6\u30c9\u30d9\u30fc\u30b9\u306e\u30e1\u30e2\u30a2\u30d7\u30ea\u3084WordPress\u30d7\u30e9\u30b0\u30a4\u30f3\u306e\u3088\u3046\u306a\u30c4\u30fc\u30eb\u304c\u3001\u30b7\u30f3\u30d7\u30eb\u3067\u30a2\u30af\u30bb\u30b9\u3057\u3084\u3059\u3044\u3068\u3044\u3046\u70b9\u3067\u51fa\u767a\u70b9\u3068\u3057\u3066\u6700\u9069\u3067\u3059\u3002\u7d4c\u9a13\u3092\u7a4d\u3093\u3060\u3089\u3001GitHub\u3084GitLab\u306b\u79fb\u884c\u3059\u308b\u3053\u3068\u3092\u691c\u8a0e\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002\u30af\u30e9\u30a6\u30c9\u30c4\u30fc\u30eb\u306f\u30b7\u30f3\u30d7\u30eb\u3067\u30a2\u30af\u30bb\u30b9\u3057\u3084\u3059\u304f\u3001\u30d7\u30e9\u30b0\u30a4\u30f3\u306fWordPress\u306b\u76f4\u63a5\u7d71\u5408\u3067\u304d\u3001\u30d0\u30fc\u30b8\u30e7\u30f3\u7ba1\u7406\u30c4\u30fc\u30eb\u306f\u5b89\u5168\u6027\u3001\u30d0\u30fc\u30b8\u30e7\u30f3\u8ffd\u8de1\u3001\u30b3\u30e9\u30dc\u30ec\u30fc\u30b7\u30e7\u30f3\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u63d0\u4f9b\u3057\u307e\u3059\u3002\u5c0f\u898f\u6a21\u306a\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3084\u521d\u5fc3\u8005\u306b\u306f\u30d7\u30e9\u30b0\u30a4\u30f3\u3084\u30af\u30e9\u30a6\u30c9\u30ce\u30fc\u30c8\u3067\u5341\u5206\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u304c\u3001\u5927\u898f\u6a21\u306a\u30c1\u30fc\u30e0\u3084\u3088\u308a\u8907\u96d1\u306a\u30cb\u30fc\u30ba\u306b\u306f Git \u30ea\u30dd\u30b8\u30c8\u30ea\u304c\u7406\u60f3\u7684\u3067\u3059\u3002\u81ea\u5206\u306e\u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u306b\u5408\u3063\u305f\u65b9\u6cd5\u3092\u9078\u3073\u3001\u4eca\u65e5\u304b\u3089\u30b9\u30cb\u30da\u30c3\u30c8\u3092\u307e\u3068\u3081\u59cb\u3081\u307e\u3057\u3087\u3046\u3002\u521d\u5fc3\u8005\u306b\u3068\u3063\u3066\u306f\u3001\u30af\u30e9\u30a6\u30c9\u30d9\u30fc\u30b9\u306e\u30ce\u30fc\u30c8\u30a2\u30d7\u30ea\u3084WordPress\u30d7\u30e9\u30b0\u30a4\u30f3\u306e\u3088\u3046\u306a\u30c4\u30fc\u30eb\u306f\u3001\u30b7\u30f3\u30d7\u30eb\u3067\u3042\u308b\u305f\u3081\u3001\u51fa\u767a\u70b9\u3068\u3057\u3066\u6700\u9069\u3067\u3059\u3002\u7d4c\u9a13\u3092\u7a4d\u3093\u3060\u3089\u3001GitHub\u3084GitLab\u306b\u79fb\u884c\u3057\u3066\u3001\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u3084\u30b3\u30e9\u30dc\u30ec\u30fc\u30b7\u30e7\u30f3\u6a5f\u80fd\u3092\u5f37\u5316\u3059\u308b\u3053\u3068\u3092\u691c\u8a0e\u3057\u307e\u3057\u3087\u3046\u3002\u30af\u30e9\u30a6\u30c9\u30c4\u30fc\u30eb\u306f\u30b7\u30f3\u30d7\u30eb\u3067\u30a2\u30af\u30bb\u30b9\u3057\u3084\u3059\u304f\u3001\u30d7\u30e9\u30b0\u30a4\u30f3\u306fWordPress\u306b\u76f4\u63a5\u7d71\u5408\u3067\u304d\u3001\u30d0\u30fc\u30b8\u30e7\u30f3\u7ba1\u7406\u30c4\u30fc\u30eb\u306f\u5b89\u5168\u6027\u3068\u30b3\u30e9\u30dc\u30ec\u30fc\u30b7\u30e7\u30f3\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u63d0\u4f9b\u3057\u307e\u3059\u3002\u81ea\u5206\u306e\u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u306b\u5408\u3063\u305f\u65b9\u6cd5\u3092\u9078\u3073\u3001\u4eca\u65e5\u304b\u3089\u30b9\u30cb\u30da\u30c3\u30c8\u3092\u307e\u3068\u3081\u307e\u3057\u3087\u3046\u3002\u3088\u304f\u6574\u7406\u3055\u308c\u305f\u30e9\u30a4\u30d6\u30e9\u30ea\u304c\u3042\u308c\u3070\u3001\u30b3\u30fc\u30c9\u3092\u66f8\u304f\u91cf\u304c\u6e1b\u308a\u3001\u30d0\u30b0\u304c\u6e1b\u308a\u3001\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u304c\u65e9\u304f\u5b8c\u4e86\u3057\u307e\u3059\u3002\u30af\u30e9\u30a6\u30c9\u30ce\u30fc\u30c8\u3001Git\u30ea\u30dd\u30b8\u30c8\u30ea\u3001WordPress\u30d7\u30e9\u30b0\u30a4\u30f3\u306a\u3069\u3001\u81ea\u5206\u306e\u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u306b\u5408\u3063\u305f\u65b9\u6cd5\u3092\u9078\u3093\u3067\u3001\u4eca\u65e5\u304b\u3089\u30b9\u30cb\u30da\u30c3\u30c8\u3092\u307e\u3068\u3081\u307e\u3057\u3087\u3046\u3002<\/p><p><\/p>","protected":false},"excerpt":{"rendered":"<p>WordPress\u30b5\u30a4\u30c8\u306e\u7ba1\u7406\u306b\u306f\u3001\u4e88\u671f\u305b\u306c\u8ab2\u984c\u3084\u6280\u8853\u7684\u306a\u554f\u984c\u304c\u3064\u304d\u3082\u306e\u3067\u3059\u3002\u5b9f\u969b\u306e\u4f8b\u3092\u3044\u304f\u3064\u304b\u6319\u3052\u3066\u307f\u307e\u3057\u3087\u3046\uff1a\u3042\u306a\u305f\u306e\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8\u3092\u60f3\u50cf\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044...<\/p>","protected":false},"author":31,"featured_media":2910,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[82],"tags":[272,271,270],"class_list":["post-2854","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-code-snippet-library","tag-efficiency","tag-github","tag-wordpressdevelopment",""],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.openbyt.com\/ja\/wp-json\/wp\/v2\/posts\/2854","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.openbyt.com\/ja\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.openbyt.com\/ja\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.openbyt.com\/ja\/wp-json\/wp\/v2\/users\/31"}],"replies":[{"embeddable":true,"href":"https:\/\/www.openbyt.com\/ja\/wp-json\/wp\/v2\/comments?post=2854"}],"version-history":[{"count":3,"href":"https:\/\/www.openbyt.com\/ja\/wp-json\/wp\/v2\/posts\/2854\/revisions"}],"predecessor-version":[{"id":3176,"href":"https:\/\/www.openbyt.com\/ja\/wp-json\/wp\/v2\/posts\/2854\/revisions\/3176"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.openbyt.com\/ja\/wp-json\/wp\/v2\/media\/2910"}],"wp:attachment":[{"href":"https:\/\/www.openbyt.com\/ja\/wp-json\/wp\/v2\/media?parent=2854"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.openbyt.com\/ja\/wp-json\/wp\/v2\/categories?post=2854"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.openbyt.com\/ja\/wp-json\/wp\/v2\/tags?post=2854"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}