{"id":56379,"date":"2024-04-02T20:51:44","date_gmt":"2024-04-02T11:51:44","guid":{"rendered":"https:\/\/kinsta.com\/jp\/?p=56379&#038;preview=true&#038;preview_id=56379"},"modified":"2024-04-04T16:48:55","modified_gmt":"2024-04-04T07:48:55","slug":"php-oop","status":"publish","type":"post","link":"https:\/\/kinsta.com\/jp\/blog\/php-oop\/","title":{"rendered":"PHP\u306b\u304a\u3051\u308b\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u6307\u5411\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u2500WordPress\u30b5\u30a4\u30c8\u958b\u767a\u306e\u9032\u5316"},"content":{"rendered":"<p>\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u306b\u304a\u3051\u308b\u91cd\u8981\u306a\u30d1\u30e9\u30c0\u30a4\u30e0\u3068\u3082\u8a00\u3048\u308b\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u6307\u5411\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\uff08OOP\uff09\u306f\u3001\u300c\u30a2\u30af\u30b7\u30e7\u30f3\u300d\u306e\u4ee3\u308f\u308a\u306b\u30c7\u30fc\u30bf\u3084\u6a5f\u80fd\u3092\u542b\u3080\u30af\u30e9\u30b9\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3067\u3042\u308b\u300c\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u300d\u306b\u7126\u70b9\u3092\u5f53\u3066\u305f\u3082\u306e\u3067\u3059\u3002<\/p>\n<p>\u30b5\u30fc\u30d0\u30fc\u30b5\u30a4\u30c9\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u3068\u3057\u3066\u77e5\u3089\u308c\u308b<a href=\"https:\/\/kinsta.com\/jp\/blog\/what-is-php\/\">PHP<\/a>\u306f\u3001OOP\u304b\u3089\u5927\u304d\u306a\u6069\u6075\u3092\u53d7\u3051\u3066\u3044\u307e\u3059\u3002\u3068\u3044\u3046\u306e\u3082\u3001OPP\u306f\u30e2\u30b8\u30e5\u30fc\u30eb\u578b\u306e\u518d\u5229\u7528\u53ef\u80fd\u306a\u30b3\u30fc\u30c9\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3001\u3053\u308c\u306b\u3088\u308a\u30b3\u30fc\u30c9\u306e\u4fdd\u5b88\u304c\u5bb9\u6613\u306b\u306a\u308a\u307e\u3059\u3002\u305d\u306e\u7d50\u679c\u3001\u5927\u898f\u6a21\u306a\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u7d44\u7e54\u5316\u3084\u30b9\u30b1\u30fc\u30e9\u30d3\u30ea\u30c6\u30a3\u304c\u5411\u4e0a\u3057\u307e\u3059\u3002<\/p>\n<p>OOP\u3092\u30de\u30b9\u30bf\u30fc\u3059\u308b\u3053\u3068\u306f\u3001<a href=\"https:\/\/kinsta.com\/jp\/blog\/what-is-wordpress\/\">WordPress<\/a>\u306e\u30c6\u30fc\u30de\u3084\u30d7\u30e9\u30b0\u30a4\u30f3\u3001\u30ab\u30b9\u30bf\u30e0\u30bd\u30ea\u30e5\u30fc\u30b7\u30e7\u30f3\u3092\u6271\u3046<a href=\"https:\/\/kinsta.com\/jp\/blog\/types-of-developers\/\">\u958b\u767a\u8005<\/a>\u306b\u3068\u3063\u3066\u91cd\u8981\u3067\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001PHP\u306b\u304a\u3051\u308bOOP\u3068\u306f\u4f55\u304b\u3001\u305d\u3057\u3066\u305d\u308c\u304cWordPress\u958b\u767a\u306b\u4e0e\u3048\u308b\u5f71\u97ff\u306b\u3064\u3044\u3066\u6982\u8aac\u3057\u307e\u3059\u3002\u307e\u305f\u3001PHP\u3067OOP\u306e\u539f\u5247\u3092\u5b9f\u88c5\u3059\u308b\u65b9\u6cd5\u306b\u3064\u3044\u3066\u3082\u3054\u8aac\u660e\u3057\u307e\u3059\u3002<\/p>\n<div><\/div><kinsta-auto-toc heading=\"Table of Contents\" exclude=\"last\" list-style=\"arrow\" selector=\"h2\" count-number=\"-1\"><\/kinsta-auto-toc>\n<h2>\u524d\u63d0\u6761\u4ef6<\/h2>\n<p>\u3053\u306e\u8a18\u4e8b\u306e\u30cf\u30f3\u30ba\u30aa\u30f3\u5f62\u5f0f\u306e\u89e3\u8aac\u306b\u5f93\u3046\u306b\u306f\u3001\u4ee5\u4e0b\u304c\u5fc5\u8981\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<ul>\n<li>Apache\u3068MySQL\u3092\u8003\u616e\u3057<a href=\"https:\/\/www.apachefriends.org\/download.html\" target=\"_blank\" rel=\"noopener noreferrer\">XAMPP<\/a>\uff08\u307e\u305f\u306f\u540c\u69d8\u306e\u3082\u306e\uff09<\/li>\n<li><a href=\"https:\/\/www.php.net\/downloads\" target=\"_blank\" rel=\"noopener noreferrer\">\u30d0\u30fc\u30b8\u30e7\u30f37.4\u4ee5\u4e0a<\/a>\u306ePHP\u74b0\u5883<\/li>\n<li><a href=\"https:\/\/code.visualstudio.com\/Download\" target=\"_blank\" rel=\"noopener noreferrer\">Visual Studio Code<\/a>\u306e\u3088\u3046\u306a\u30b3\u30fc\u30c9\u30a8\u30c7\u30a3\u30bf<\/li>\n<li><a href=\"https:\/\/kinsta.com\/jp\/blog\/build-wordpress-site-offline\/#how-to-build-a-wordpress-site-offline-in-3-steps\">\u30ed\u30fc\u30ab\u30eb<\/a>\u307e\u305f\u306f<a href=\"https:\/\/kinsta.com\/jp\/docs\/wordpress-hosting\/wordpress-getting-started\/new-site\/\">\u30a6\u30a7\u30d6\u30b5\u30fc\u30d0\u30fc<\/a>\u4e0a\u306eWordPress<\/li>\n<li>PHP\u3068WordPress\u306e\u77e5\u8b58<\/li>\n<\/ul>\n<h2>PHP\u958b\u767a\u306b\u304a\u3051\u308bOOP\u306e\u5229\u70b9<\/h2>\n<p>OOP\u306f\u3001\u30e2\u30b8\u30e5\u30fc\u30eb\u6027\u3001\u518d\u5229\u7528\u6027\u3001\u30b9\u30b1\u30fc\u30e9\u30d3\u30ea\u30c6\u30a3\u3001\u4fdd\u5b88\u6027\u3001\u30c1\u30fc\u30e0\u30ef\u30fc\u30af\u3092\u5411\u4e0a\u3055\u305b\u308b\u3053\u3068\u3067\u3001<a href=\"https:\/\/kinsta.com\/php\/\">PHP<\/a>\u958b\u767a\u3092\u5927\u304d\u304f\u5f8c\u62bc\u3057\u3057\u307e\u3059\u3002OOP\u3067\u306fPHP\u30b3\u30fc\u30c9\u3092\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b\u5206\u5272\u3057\u3066\u6574\u7406\u3057\u3001\u305d\u308c\u305e\u308c\u304c\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u7279\u5b9a\u306e\u90e8\u5206\u3092\u8868\u73fe\u3057\u307e\u3059\u3002\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u30b3\u30fc\u30c9\u3092\u7c21\u5358\u306b\u518d\u5229\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u3001 \u6642\u9593\u3092\u7bc0\u7d04\u3057\u306a\u304c\u3089\u3001\u30a8\u30e9\u30fc\u3092\u6e1b\u3089\u3059\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u3053\u3068\u3092\u5ff5\u982d\u306b\u7f6e\u3044\u3066\u3001PHP\u306b\u304a\u3051\u308bOOP\u306e2\u3064\u306e\u5177\u4f53\u7684\u306a\u5229\u70b9\u3092\u6271\u3044\u3001\u305d\u308c\u304c\u958b\u767a\u30d7\u30ed\u30bb\u30b9\u3092\u3069\u306e\u3088\u3046\u306b\u5909\u3048\u308b\u304b\u3092\u898b\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<h3>1. \u30b3\u30fc\u30c9\u306e\u518d\u5229\u7528\u3068\u30e1\u30f3\u30c6\u30ca\u30f3\u30b9<\/h3>\n<p>PHP\u306eOOP\u3067\u306f\u3001\u7d99\u627f\u3068\u30dd\u30ea\u30e2\u30fc\u30d5\u30a3\u30ba\u30e0\u306e\u304a\u304b\u3052\u3067\u3001\u30b3\u30fc\u30c9\u306e\u518d\u5229\u7528\u304c\u7c21\u5358\u306b\u306a\u308a\u307e\u3059\u3002\u30af\u30e9\u30b9\u306f\u3001\u4ed6\u306e\u30af\u30e9\u30b9\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u3084\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u53e4\u3044\u30b3\u30fc\u30c9\u3092\u307b\u3068\u3093\u3069\u5909\u66f4\u305b\u305a\u306b\u65b0\u3057\u3044\u65b9\u6cd5\u3067\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>OOP\u3067\u306f\u3001\u30b3\u30fc\u30c9\u306e\u7ba1\u7406\u3082\u7c21\u5358\u3067\u3059\u3002\u30ab\u30d7\u30bb\u30eb\u5316\u304c\u884c\u308f\u308c\u3001<strong>getter<\/strong>\u3084<strong>setter<\/strong>\u3068\u547c\u3070\u308c\u308b\u7279\u5225\u306a\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u3063\u3066\u3001\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304c\u305d\u306e\u8a73\u7d30\u3092\u30d7\u30e9\u30a4\u30d9\u30fc\u30c8\u306b\u4fdd\u3061\u3001\u5fc5\u8981\u306a\u3082\u306e\u3060\u3051\u3092\u5171\u6709\u3059\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002\u3053\u306e\u30a2\u30d7\u30ed\u30fc\u30c1\u306f\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u4e00\u90e8\u5206\u306e\u5909\u66f4\u304c\u4ed6\u306e\u90e8\u5206\u3067\u554f\u984c\u3092\u5f15\u304d\u8d77\u3053\u3059\u306e\u3092\u9632\u304e\u3001\u30b3\u30fc\u30c9\u306e\u66f4\u65b0\u3084\u4fdd\u5b88\u3092\u3088\u308a\u7c21\u5358\u306b\u3059\u308b\u3053\u3068\u306b\u3064\u306a\u304c\u308a\u307e\u3059\u3002<\/p>\n<p>\u307e\u305f\u3001\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306f\u305d\u308c\u81ea\u4f53\u3067\u5b8c\u7d50\u3057\u3066\u3044\u308b\u305f\u3081\u3001\u30b7\u30b9\u30c6\u30e0\u306e\u7279\u5b9a\u306e\u90e8\u5206\u306e\u30d0\u30b0\u3092\u767a\u898b\u3057\u3001\u4fee\u6b63\u3059\u308b\u3053\u3068\u304c\u5bb9\u6613\u306b\u306a\u308a\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u30b3\u30fc\u30c9\u5168\u4f53\u306e\u8cea\u3068\u4fe1\u983c\u6027\u304c\u5411\u4e0a\u3057\u307e\u3059\u3002<\/p>\n<h3>2. \u660e\u5feb\u3055\u3068\u69cb\u9020\u306e\u5411\u4e0a<\/h3>\n<p>OOP \u3067\u306f\u3001<strong>\u30af\u30e9\u30b9<\/strong>\u3068<strong>\u30aa\u30d6\u30b8\u30a7\u30af\u30c8<\/strong>\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3067PHP\u30b3\u30fc\u30c9\u3092\u3088\u308a\u3059\u3063\u304d\u308a\u3068\u6574\u7406\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u30af\u30e9\u30b9\u306f\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306e\u3088\u3046\u306a\u5f79\u5272\u3092\u679c\u305f\u3057\u3001 \u4e00\u7dd2\u306b\u306a\u308b\u3079\u304d\u3082\u306e\u3092\u3059\u3079\u3066\u4e00\u304b\u6240\u306b\u307e\u3068\u3081\u3066\u304a\u304f\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u3064\u307e\u308a\u3001\u540c\u3058\u30b3\u30fc\u30c9\u3092\u7e70\u308a\u8fd4\u3057\u66f8\u304f\u5fc5\u8981\u304c\u306a\u304f\u306a\u308a\u307e\u3059\u3002\u3053\u308c\u3089\u306f\u3059\u3079\u3066\u3001\u30b3\u30fc\u30c9\u3092\u3059\u3063\u304d\u308a\u3055\u305b\u3001\u4fee\u6b63\u3057\u3084\u3059\u304f\u3057\u3001\u6574\u7406\u3057\u3084\u3059\u304f\u3059\u308b\u306e\u306b\u5f79\u7acb\u3061\u307e\u3059\u3002<\/p>\n<p>OOP\u306b\u3088\u308b\u660e\u77ad\u306a\u30b3\u30fc\u30c9\u306f\u3001\u30c1\u30fc\u30e0\u30ef\u30fc\u30af\u5411\u4e0a\u306b\u3082\u8ca2\u732e\u3057\u307e\u3059\u3002\u3068\u3044\u3046\u306e\u3082\u3001\u30b3\u30fc\u30c9\u306b\u3064\u3044\u3066\u8aac\u660e\u3059\u308b\u6642\u9593\u3092\u6e1b\u3089\u3057\u3001\u4ed5\u4e8b\u306b\u96c6\u4e2d\u3059\u308b\u6642\u9593\u3092\u5897\u3084\u3059\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u307e\u305f\u3001\u30df\u30b9\u304c\u6e1b\u308a\u3001\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u8ecc\u9053\u306b\u4e57\u305b\u308b\u4e0a\u3067\u3082\u52b9\u679c\u7684\u3067\u3059\u3002\u307e\u305f\u3001\u30b3\u30fc\u30c9\u304c\u6574\u7136\u3068\u3057\u3066\u3044\u308c\u3070\u3001\u65b0\u898f\u52a0\u5165\u306e\u30c1\u30fc\u30e0\u30e1\u30f3\u30d0\u30fc\u3082\u3059\u3050\u306b\u305d\u306e\u69cb\u9020\u3092\u7406\u89e3\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h2>PHP\u3067OOP\u3092\u5b9f\u88c5\u3059\u308b<\/h2>\n<p>PHP\u306eOOP\u3067\u306f\u3001\u8a2d\u8a08\u56f3\u3084\u5bb6\u306e\u3088\u3046\u306b\u3001\u30af\u30e9\u30b9\u3068\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3067\u30b3\u30fc\u30c9\u3092\u6574\u7406\u3057\u307e\u3059\u3002\u3059\u3079\u3066\u306e\u3082\u306e\uff08\u30e6\u30fc\u30b6\u30fc\u3084\u672c\u306a\u3069\uff09\u306b\u5bfe\u3057\u3066\u3001\u305d\u306e\u7279\u6027\u3084\u30a2\u30af\u30b7\u30e7\u30f3\u3092\u542b\u3080\u30af\u30e9\u30b9\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002\u305d\u3057\u3066\u3001\u7d99\u627f\u3092\u4f7f\u7528\u3057\u3066\u65e2\u5b58\u306e\u30af\u30e9\u30b9\u304b\u3089\u65b0\u3057\u3044\u30af\u30e9\u30b9\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002\u307e\u305f\u3001\u30ab\u30d7\u30bb\u30eb\u5316\u306b\u3088\u3063\u3066\u30af\u30e9\u30b9\u306e\u4e00\u90e8\u304c\u975e\u516c\u958b\u306b\u306a\u308b\u305f\u3081\u3001\u30b3\u30fc\u30c9\u304c\u3088\u308a\u5b89\u5168\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u306e\u30bb\u30af\u30b7\u30e7\u30f3\u3067\u306f\u3001PHP\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3067OOP\u306e\u539f\u5247\u3092\u52b9\u679c\u7684\u306b\u4f7f\u7528\u3059\u308b\u65b9\u6cd5\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002\u8a18\u4e8b\u3092\u7ba1\u7406\u3059\u308b\u306e\u306b\u4fbf\u5229\u306a<a href=\"https:\/\/kinsta.com\/jp\/blog\/content-management-system\/\">\u30b3\u30f3\u30c6\u30f3\u30c4\u7ba1\u7406\u30b7\u30b9\u30c6\u30e0<\/a>\uff08CMS\uff09\u3092\u4f5c\u6210\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<h3>1. \u30d7\u30ed\u30d1\u30c6\u30a3\u3068\u30e1\u30bd\u30c3\u30c9\u3092\u6301\u3064\u30af\u30e9\u30b9\u3092\u5b9a\u7fa9\u3059\u308b<\/h3>\n<p>\u30bf\u30a4\u30c8\u30eb\u3001\u30b3\u30f3\u30c6\u30f3\u30c4\u3001\u30b9\u30c6\u30fc\u30bf\u30b9\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u3068\u3001\u3053\u308c\u3089\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u8a2d\u5b9a\u3057\u305f\u308a\u8868\u793a\u3057\u305f\u308a\u3059\u308b\u30e1\u30bd\u30c3\u30c9\u3092\u542b\u3080<code>Article<\/code>\u30af\u30e9\u30b9\u304b\u3089\u59cb\u3081\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-php\">class Article {\n    private $title;\n    private $content;\n    private $status;\n\n    const STATUS_PUBLISHED = 'published';\n    const STATUS_DRAFT = 'draft';\n\n    public function __construct($title, $content) {\n        $this-&gt;title = $title;\n        $this-&gt;content = $content;\n        $this-&gt;status = self::STATUS_DRAFT;\n    }\n\n    public function setTitle($title) {\n        $this-&gt;title = $title;\n        return $this;\n    }\n\n    public function setContent($content) {\n        $this-&gt;content = $content;\n        return $this;\n    }\n\n    public function setStatus($status) {\n        $this-&gt;status = $status;\n        return $this;\n    }\n\n    public function display() {\n        echo \"&lt;h2&gt;{$this-&gt;title}&lt;\/h2&gt;&lt;p&gt;{$this-&gt;content}&lt;\/p&gt;&lt;strong&gt;Status: {$this-&gt;status}&lt;\/strong&gt;\";\n    }\n}<\/code><\/pre>\n<h3>2. \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u6210\u3057\u30e1\u30bd\u30c3\u30c9\u30c1\u30a7\u30fc\u30f3\u3092\u5b9f\u88c5\u3059\u308b<\/h3>\n<p>\u8a18\u4e8b\uff08Article\uff09\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u6210\u3057\u3001\u305d\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u8a2d\u5b9a\u3059\u308b\u305f\u3081\u306b<a href=\"https:\/\/programmingdive.com\/how-to-use-method-chaining-in-php\/\" target=\"_blank\" rel=\"noopener noreferrer\">\u30e1\u30bd\u30c3\u30c9\u30c1\u30a7\u30fc\u30f3<\/a>\u3092\u4f7f\u3044\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-php\">$article = new Article(\"OOP in PHP\", \"\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u6307\u5411\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306e\u6982\u5ff5\");\n$article-&gt;setTitle(\"PHP\u306b\u304a\u3051\u308b\u9ad8\u5ea6\u306aOOP\")-&gt;setContent(\"OOP\u306e\u9ad8\u5ea6\u306a\u6982\u5ff5\u306b\u8feb\u308b\u3002\")-&gt;setStatus(Article::STATUS_PUBLISHED)-&gt;display();<\/code><\/pre>\n<h3>3. \u30ab\u30d7\u30bb\u30eb\u5316\u3068\u7d99\u627f\u306e\u5f37\u5316<\/h3>\n<p>getter\u30e1\u30bd\u30c3\u30c9\u3068setter\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u3063\u3066\u30ab\u30d7\u30bb\u30eb\u5316\u3092\u5f37\u5316\u3057\u3001<code>Article<\/code>\u3092\u7d99\u627f\u3057\u305f<code>FeaturedArticle<\/code>\u30af\u30e9\u30b9\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-php\">class FeaturedArticle extends Article {\n    private $highlightColor = '#FFFF00'; \/\/ \u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30cf\u30a4\u30e9\u30a4\u30c8\u30ab\u30e9\u30fc\n\n    public function setHighlightColor($color) {\n        $this-&gt;highlightColor = $color;\n        return $this;\n    }\n\n    public function display() {\n        echo \"&lt;div&gt; style='background-color: {$this-&gt;highlightColor};'&gt;\";\n        parent::display();\n        echo \"&lt;\/div&gt;\";\n    }\n}\n\n$featuredArticle = new FeaturedArticle(\"\u6ce8\u76ee\u306e\u8a18\u4e8b\", \"\u6ce8\u76ee\u306e\u8a18\u4e8b\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002\");\n$featuredArticle-&gt;setStatus(FeaturedArticle::STATUS_PUBLISHED)-&gt;setHighlightColor('#FFA07A')-&gt;display();<\/code><\/pre>\n<h3>4. \u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u3068\u30dd\u30ea\u30e2\u30fc\u30d5\u30a3\u30ba\u30e0<\/h3>\n<p>\u516c\u958b\u53ef\u80fd\u306a\u30b3\u30f3\u30c6\u30f3\u30c4\u306e\u30a4\u30f3\u30bf\u30d5\u30a7\u30fc\u30b9\u3092\u5b9a\u7fa9\u3057\u3001<code>Article<\/code>\u30af\u30e9\u30b9\u306b\u5b9f\u88c5\u3057\u3066\u591a\u76f8\u6027\u3092\u8868\u73fe\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-php\">interface Publishable {\n    public function publish();\n}\n\nclass Article implements Publishable {\n    \/\/ \u65e2\u5b58\u306e\u30af\u30e9\u30b9\u30b3\u30fc\u30c9...\n\n    public function publish() {\n        $this-&gt;setStatus(self::STATUS_PUBLISHED);\n        echo \"Article '{$this-&gt;title}' published.\";\n    }\n}\n\nfunction publishContent(Publishable $content) {\n    $content-&gt;publish();\n}\n\npublishContent($article);<\/code><\/pre>\n<h3>5. trait\u3092\u4f7f\u3063\u3066\u6319\u52d5\u3092\u5171\u6709\u3059\u308b<\/h3>\n<p>PHP\u3067\u306f\u3001\u4ed6\u306e\u30af\u30e9\u30b9\u3092\u7d99\u627f\u3057\u306a\u304f\u3066\u3082trait\u3092\u4f7f\u3063\u3066\u30af\u30e9\u30b9\u306b\u95a2\u6570\u3092\u8ffd\u52a0\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u3067\u3001CMS\u5185\u306e\u30ed\u30b0\u3092\u8a18\u9332\u3059\u308b\u305f\u3081\u306etrait\u3092\u5c0e\u5165\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-php\">trait Logger {\n    public function log($message) {\n        \/\/ \u30ed\u30b0\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u30d5\u30a1\u30a4\u30eb\u307e\u305f\u306f\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u8a18\u9332\n        echo \"Log: $message\";\n    }\n}\n\nclass Article {\n    use Logger;\n\n    \/\/ \u65e2\u5b58\u306e\u30af\u30e9\u30b9\u30b3\u30fc\u30c9...\n\n    public function publish() {\n        $this-&gt;setStatus(self::STATUS_PUBLISHED);\n        $this-&gt;log(\"Article '{$this-&gt;title}' published.\");\n    }\n}<\/code><\/pre>\n<h2>WordPress\u958b\u767a\u306b\u304a\u3051\u308bOOP<\/h2>\n<p>OOP\u306e\u539f\u5247\u306f\u3001\u7279\u306b\u30c6\u30fc\u30de\u3001\u30d7\u30e9\u30b0\u30a4\u30f3\u3001\u30a6\u30a3\u30b8\u30a7\u30c3\u30c8\u3092\u4f5c\u6210\u3059\u308b\u3068\u304d\u306b\u3001<a href=\"https:\/\/kinsta.com\/jp\/topics\/wordpress-development\/\">WordPress<\/a>\u306e\u958b\u767a\u3092\u5927\u304d\u304f\u52a9\u3051\u307e\u3059\u3002OOP\u306e\u52a9\u3051\u3092\u501f\u308a\u3066\u3001WordPress\u30b5\u30a4\u30c8\u306b\u30af\u30ea\u30fc\u30f3\u3067\u30b9\u30b1\u30fc\u30e9\u30d6\u30eb\u3067\u4fdd\u5b88\u6027\u306e\u9ad8\u3044\u30b3\u30fc\u30c9\u3092\u66f8\u304f\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u30bb\u30af\u30b7\u30e7\u30f3\u3067\u306f\u3001WordPress\u958b\u767a\u306b\u304a\u3051\u308bOOP\u306e\u9069\u7528\u65b9\u6cd5\u306b\u3064\u3044\u3066\u3054\u8aac\u660e\u3057\u307e\u3059\u3002WordPress\u306e\u30c7\u30d7\u30ed\u30a4\u30e1\u30f3\u30c8\u306b\u30b3\u30d4\u30fc\uff06\u30da\u30fc\u30b9\u30c8\u3057\u3066\u5b9f\u969b\u306b\u30c6\u30b9\u30c8\u3067\u304d\u308b\u4f8b\u3092\u793a\u3057\u307e\u3059\u3002<\/p>\n<h3>WordPress \u30c6\u30fc\u30de\u306b\u304a\u3051\u308bOOP\u30ab\u30b9\u30bf\u30e0\u6295\u7a3f\u30bf\u30a4\u30d7\u306e\u767b\u9332<\/h3>\n<p><a href=\"https:\/\/kinsta.com\/jp\/topics\/wordpress-themes\/\">WordPress<\/a>\u30c6\u30fc\u30de\u3067\u306eOOP\u306e\u4f7f\u7528\u4f8b\u3092\u793a\u3059\u305f\u3081\u306b\u3001\u30ab\u30b9\u30bf\u30e0\u6295\u7a3f\u30bf\u30a4\u30d7\u306e\u767b\u9332\u3092\u51e6\u7406\u3059\u308b\u30af\u30e9\u30b9\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<p>\u30c6\u30fc\u30de\u306e<strong>functions.php<\/strong>\u30d5\u30a1\u30a4\u30eb\u306b\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u3092\u8a18\u8ff0\u3057\u307e\u3059\u3002\u30c6\u30fc\u30de\u306f<strong>wp-content\/themes<\/strong>\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u3042\u308a\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-php\">class CustomPostTypeRegistrar {\n    private $postType;\n    private $args;\n\n    public function __construct($postType, $args = []) {\n        $this-&gt;postType = $postType;\n        $this-&gt;args = $args;\n        add_action('init', array($this, 'registerPostType'));\n    }\n\n    public function registerPostType() {\n        register_post_type($this-&gt;postType, $this-&gt;args);\n    }\n}\n\n\/\/ \u4f7f\u7528\n$bookArgs = [\n    'public' =&gt; true,\n    'label'  =&gt; 'Books',\n    'supports' =&gt; ['title', 'editor', 'thumbnail'],\n    'has_archive' =&gt; true,\n];\nnew CustomPostTypeRegistrar('book', $bookArgs);<\/code><\/pre>\n<p>\u3053\u306e\u30b3\u30fc\u30c9\u3067\u306f\u3001\u30ab\u30b9\u30bf\u30e0\u6295\u7a3f\u30bf\u30a4\u30d7<code>book<\/code>\u3092\u52d5\u7684\u306b\u767b\u9332\u3057\u3001\u305d\u306e\u8a73\u7d30\u3092<code>bookArgs<\/code>\u3068\u3044\u3046\u914d\u5217\u3092\u4f7f\u3063\u3066\u6e21\u3057\u3066\u3044\u307e\u3059\u3002\u3053\u306e\u3088\u3046\u306b\u3057\u3066\u4f5c\u6210\u3057\u305f\u30ab\u30b9\u30bf\u30e0\u6295\u7a3f\u30bf\u30a4\u30d7\u306f\u3001WordPress\u7ba1\u7406\u753b\u9762\u30b5\u30a4\u30c9\u30d0\u30fc\u306e<strong>Books<\/strong>\u30e9\u30d9\u30eb\u3067\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<\/p>\n<figure style=\"width: 1001px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/kinsta.com\/wp-content\/uploads\/2024\/03\/books-page.png\" alt=\"WordPress\u306eBooks\u30da\u30fc\u30b8\u306e\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8\uff08\u30da\u30fc\u30b8\u306e\u4e0a\u90e8\u306b\u306f\u3001\u65b0\u898f\u6295\u7a3f\u3092\u8ffd\u52a0\u3059\u308b\u30dc\u30bf\u30f3\u304c\u3042\u308b\uff09\" width=\"1001\" height=\"471\"><figcaption class=\"wp-caption-text\">Books\u3068\u3044\u3046\u540d\u524d\u306e\u30ab\u30b9\u30bf\u30e0\u6295\u7a3f\u30bf\u30a4\u30d7\u3068\u305d\u306e\u65b0\u898f\u8ffd\u52a0\u753b\u9762<\/figcaption><\/figure>\n<p>\u3053\u306e\u4f8b\u304b\u3089\u306f\u3001\u3069\u306e\u3088\u3046\u306bOOP\u3092\u4f7f\u3063\u3066\u6a5f\u80fd\u306e\u30ab\u30d7\u30bb\u30eb\u5316\u3068\u30ab\u30b9\u30bf\u30e0\u6295\u7a3f\u30bf\u30a4\u30d7\u306e\u767b\u9332\u304c\u3067\u304d\u308b\u306e\u304b\u304c\u308f\u304b\u308a\u307e\u3059\u3002\u7d50\u679c\u3068\u3057\u3066\u3001\u3053\u308c\u3092\u3042\u3089\u3086\u308b\u30bf\u30a4\u30d7\u306e\u6295\u7a3f\u306b\u5bfe\u3057\u3066\u518d\u5229\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h3>WordPress\u30d7\u30e9\u30b0\u30a4\u30f3\u306b\u304a\u3051\u308bOOP\u30b7\u30e7\u30fc\u30c8\u30b3\u30fc\u30c9\u30cf\u30f3\u30c9\u30e9<\/h3>\n<p>\u30d7\u30e9\u30b0\u30a4\u30f3\u306e\u4f8b\u3068\u3057\u3066\u3001\u7279\u5225\u306a\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u8868\u793a\u3059\u308b\u305f\u3081\u306e<a href=\"https:\/\/kinsta.com\/jp\/blog\/wordpress-shortcodes\/\">\u30b7\u30e7\u30fc\u30c8\u30b3\u30fc\u30c9<\/a>\u3092\u51e6\u7406\u3059\u308b\u30af\u30e9\u30b9\u3092\u958b\u767a\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002\u4ee5\u4e0b\u306e\u30b7\u30e7\u30fc\u30c8\u30b3\u30fc\u30c9\u3092\u4efb\u610f\u306e\u6295\u7a3f\u3084\u30da\u30fc\u30b8\u306b\u8ffd\u52a0\u3059\u308b\u3053\u3068\u3067\u3001\u3053\u306e\u6a5f\u80fd\u3092\u30c6\u30b9\u30c8\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-php\">&lt;?php\n\/**\n* Plugin Name: OOP Shortcode Handler\n* Description: OOP\u3092\u7528\u3044\u3066\u30ab\u30b9\u30bf\u30e0\u30b7\u30e7\u30fc\u30c8\u30b3\u30fc\u30c9\u3092\u3067\u51e6\u7406\u3057\u307e\u3059\u3002\n* Version: 1.0\n* Author: Name\n*\/\n\nclass OOPShortcodeHandler {\n    public function __construct() {\n        add_shortcode('oop_message', array($this, 'displayCustomMessage'));\n    }\n\n    public function displayCustomMessage($atts) {\n        $attributes = shortcode_atts(['message' =&gt; '\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u8868\u793a\u3057\u3066\u3044\u307e\u3059!'], $atts);\n        return \"&lt;div&gt;{$attributes['message']}&lt;\/div&gt;\";\n    }\n}\n\nnew OOPShortcodeHandler();<\/code><\/pre>\n<p>\u3053\u308c\u3092<strong>wp-content\/plugins<\/strong>\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b<strong>my-oop-shortcode-handler.php<\/strong>\u3068\u3057\u3066\u4fdd\u5b58\u3057\u307e\u3059\u3002\u6700\u5f8c\u306b\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u6709\u52b9\u5316\u3057\u307e\u3059\u3002<\/p>\n<figure style=\"width: 1001px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/kinsta.com\/wp-content\/uploads\/2024\/03\/plugins-page.png\" alt=\"\u30d7\u30e9\u30b0\u30a4\u30f3\u30da\u30fc\u30b8\u306e\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8\uff08\u30da\u30fc\u30b8\u4e0a\u90e8\u306b\u306f\u65b0\u3057\u3044\u30d7\u30e9\u30b0\u30a4\u30f3\u8ffd\u52a0\u306e\u30dc\u30bf\u30f3\u304c\u3042\u308a\u3001\u305d\u306e\u4e0b\u306b\u30d7\u30e9\u30b0\u30a4\u30f3\u306e\u4e00\u89a7\u304c\u3042\u308b\u3002\u4f5c\u6210\u3057\u305fOOP Shortcode Handler\u304c\u6709\u52b9\u306b\u306a\u3063\u3066\u3044\u308b\uff09\" width=\"1001\" height=\"471\"><figcaption class=\"wp-caption-text\">\u30d7\u30e9\u30b0\u30a4\u30f3\u30da\u30fc\u30b8\u306bMy OOP Shortcode Handler\u304c\u8868\u793a\u3055\u308c\u3066\u3044\u308b<\/figcaption><\/figure>\n<p>\u6b21\u306b\u3001\u516c\u958b\u307e\u305f\u306f\u66f4\u65b0\u3059\u308b\u524d\u306b\u3001\u30da\u30fc\u30b8\u307e\u305f\u306f\u6295\u7a3f\u30a8\u30c7\u30a3\u30bf\u30fc\u3067\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u30b7\u30e7\u30fc\u30c8\u30b3\u30fc\u30c9<code>[oop_message]<\/code>\u3068<code>[oop_message message=\"\u30ab\u30b9\u30bf\u30e0\u30e1\u30c3\u30bb\u30fc\u30b8\"]<\/code>\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<p><figure style=\"width: 1001px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/kinsta.com\/wp-content\/uploads\/2024\/03\/sample-page.png\" alt=\"\u30b5\u30f3\u30d7\u30eb\u30da\u30fc\u30b8\u306e\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8\uff08\"[oop_message]\"\u3068\"[oop_message message=\"Custom Message Here\"]\"\u3068\u3044\u3046\u30b3\u30fc\u30c9\u304c\u8868\u793a\u3055\u308c\u3066\u3044\u308b\u3002\u3055\u3089\u306b\u305d\u308c\u306b\"This is an example page...\"\u3068\u3044\u3046\u6587\u7ae0\u304c\u7d9a\u304f\uff09\" width=\"1001\" height=\"471\"><figcaption class=\"wp-caption-text\">\u30ab\u30b9\u30bf\u30e0\u30b7\u30e7\u30fc\u30c8\u30b3\u30fc\u30c9\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u8ffd\u52a0\u3055\u308c\u305f\u30b5\u30f3\u30d7\u30eb\u30da\u30fc\u30b8<\/figcaption><\/figure>\u516c\u958b\u307e\u305f\u306f\u66f4\u65b0\u3059\u308b\u3068\u3001\u30b7\u30e7\u30fc\u30c8\u30b3\u30fc\u30c9\u306b\u3088\u308a\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<figure style=\"width: 1001px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/kinsta.com\/wp-content\/uploads\/2024\/03\/display-sample-page.png\" alt=\"\u30b5\u30f3\u30d7\u30eb\u30da\u30fc\u30b8\u306e\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8\uff08\"Hello, this is your OOP message!\"\u3068\"This is a custom message.\"\u305d\u3057\u3066\u305d\u306e\u5f8c\u306b\u30b5\u30f3\u30d7\u30eb\u306e\u6587\u7ae0\u304c\u8868\u793a\u3055\u308c\u3066\u3044\u308b\uff09 \" width=\"1001\" height=\"471\"><figcaption class=\"wp-caption-text\">\u30b5\u30f3\u30d7\u30eb\u30da\u30fc\u30b8\u306b\u30ab\u30b9\u30bf\u30e0\u30b7\u30e7\u30fc\u30c8\u30b3\u30fc\u30c9\u306e\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u3066\u3044\u308b<\/figcaption><\/figure>\n<h3>WordPress\u30a6\u30a3\u30b8\u30a7\u30c3\u30c8\u306b\u304a\u3051\u308bOOP\u2500\u30c0\u30a4\u30ca\u30df\u30c3\u30af\u30b3\u30f3\u30c6\u30f3\u30c4\u30a6\u30a3\u30b8\u30a7\u30c3\u30c8<\/h3>\n<p>\u30a6\u30a3\u30b8\u30a7\u30c3\u30c8\u306e\u6a5f\u80fd\u3092\u30af\u30e9\u30b9\u5185\u306b\u30ab\u30d7\u30bb\u30eb\u5316\u3067\u304d\u308b\u305f\u3081\u3001OOP\u306f\u30a6\u30a3\u30b8\u30a7\u30c3\u30c8\u306b\u3068\u3063\u3066\u3082\u6709\u76ca\u3067\u3059\u3002WordPress\u306e\u30b3\u30a2\u81ea\u4f53\u304c\u3001\u30a6\u30a3\u30b8\u30a7\u30c3\u30c8\u306bOOP\u3092\u4f7f\u7528\u3057\u3066\u3044\u307e\u3059\u3002\u305d\u308c\u3067\u306f\u3001\u30e6\u30fc\u30b6\u30fc\u306b\u3088\u308b\u30bf\u30a4\u30c8\u30eb\u3068\u30c6\u30ad\u30b9\u30c8\u30a8\u30ea\u30a2\u3092\u6301\u3064\u52d5\u7684\u306a\u30b3\u30f3\u30c6\u30f3\u30c4\u306e\u8868\u793a\u3092\u53ef\u80fd\u306b\u3059\u308b\u30ab\u30b9\u30bf\u30e0\u30a6\u30a3\u30b8\u30a7\u30c3\u30c8\u3092\u4f5c\u6210\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u3092\u30c6\u30fc\u30de\u306e<strong>functions.php<\/strong>\u30d5\u30a1\u30a4\u30eb\u307e\u305f\u306f\u30d7\u30e9\u30b0\u30a4\u30f3\u3068\u3057\u3066\u8ffd\u52a0\u3057\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u300c\u30ab\u30b9\u30bf\u30e0\u30a6\u30a3\u30b8\u30a7\u30c3\u30c8\u3067\u3059\uff01\u300d\u3068\u3044\u3046\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u8868\u793a\u3059\u308b\u30ab\u30b9\u30bf\u30e0\u30a6\u30a3\u30b8\u30a7\u30c3\u30c8\u304c\u5b9a\u7fa9\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-php\">class My_Custom_Widget extends WP_Widget {\n\n    public function __construct() {\n        parent::__construct(\n            'my_custom_widget', \/\/ \u57fa\u672cID\n            'My Custom Widget', \/\/ \u540d\u524d\n            array('description' =&gt; __('\u30b7\u30f3\u30d7\u30eb\u306a\u30ab\u30b9\u30bf\u30e0\u30a6\u30a3\u30b8\u30a7\u30c3\u30c8', \n'text_domain'),) \/\/ Args\u3092\u6271\u3046\n        );\n    }\n\n    public function widget($args, $instance) {\n        echo $args['before_widget'];\n        if (!empty($instance['title'])) {\n            echo $args['before_title'] . apply_filters('widget_title',  \n$instance['title']) . $args['after_title'];\n        }\n        \/\/ \u30a6\u30a3\u30b8\u30a7\u30c3\u30c8\u306e\u30b3\u30f3\u30c6\u30f3\u30c4\n        echo __('\u30ab\u30b9\u30bf\u30e0\u30a6\u30a3\u30b8\u30a7\u30c3\u30c8\u3067\u3059\uff01', 'text_domain');\n        echo $args['after_widget'];\n    }\n\n    public function form($instance) {\n        \/\/ WordPress\u7ba1\u7406\u753b\u9762\u306e\u30d5\u30a9\u30fc\u30e0\n    }\n\n    public function update($new_instance, $old_instance) {\n        \/\/ \u4fdd\u5b58\u3059\u308b\u30a6\u30a3\u30b8\u30a7\u30c3\u30c8\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u51e6\u7406\n    }\n}\n\nfunction register_my_custom_widget() {\n    register_widget('My_Custom_Widget');\n}\nadd_action('widgets_init', 'register_my_custom_widget');<\/code><\/pre>\n<p>\u7ba1\u7406\u753b\u9762\u5185\u300c<strong>\u5916\u89b3<\/strong>\u300d\u306e\u4e0b\u306b\u3042\u308b\u300c<strong>\u30ab\u30b9\u30bf\u30de\u30a4\u30ba<\/strong>\u300d\u3092\u4f7f\u7528\u3057\u3066\u30c6\u30fc\u30de\u306e\u597d\u307f\u306e\u5834\u6240\u306b\u4f5c\u6210\u3057\u305f\u3070\u304b\u308a\u306e\u30ab\u30b9\u30bf\u30e0\u30a6\u30a3\u30b8\u30a7\u30c3\u30c8\u3092\u8ffd\u52a0\u3067\u304d\u307e\u3059\u3002<\/p>\n<figure style=\"width: 1001px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/kinsta.com\/wp-content\/uploads\/2024\/03\/wp-site-landing-page.png\" alt=\"WordPress\u30b5\u30a4\u30c8\u306e\u30e9\u30f3\u30c7\u30a3\u30f3\u30b0\u30da\u30fc\u30b8\u306e\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8\uff08\u30da\u30fc\u30b8\u306e\u5de6\u5074\u306b\u306f\u3001\u6700\u8fd1\u306e\u6295\u7a3f\u3068\u6700\u8fd1\u306e\u30b3\u30e1\u30f3\u30c8\u3092\u793a\u3059\u30e1\u30cb\u30e5\u30fc\u3068\u516c\u958b\u30dc\u30bf\u30f3\u304c\u3042\u308b\uff09\" width=\"1001\" height=\"471\"><figcaption class=\"wp-caption-text\">\u30b5\u30a4\u30c9\u30d0\u30fc\u306e\u30ab\u30b9\u30bf\u30e0\u30a6\u30a3\u30b8\u30a7\u30c3\u30c8\u306e\u8a2d\u5b9a\u3068\u30b5\u30f3\u30d7\u30eb\u30da\u30fc\u30b8\u3067\u306e\u30a6\u30a3\u30b8\u30a7\u30c3\u30c8\u306e\u4f7f\u7528<\/figcaption><\/figure>\n<h2>WordPress\u30af\u30e9\u30b9\u306e\u6d3b\u7528<\/h2>\n<p>WordPress\u306b\u306f\u3001CMS\u306e\u30b3\u30a2\u6a5f\u80fd\u3068\u76f8\u4e92\u306b\u3084\u308a\u3068\u308a\u3059\u308b\u305f\u3081\u306e\u69d8\u3005\u306a\u30af\u30e9\u30b9\u304c\u7528\u610f\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u305d\u306e\u3088\u3046\u306a\u30af\u30e9\u30b9\u3068\u3057\u3066\u3001<code>WP_User<\/code>\u3068<code>WP_Post<\/code>\u304c\u3042\u308a\u3001\u305d\u308c\u305e\u308c\u30e6\u30fc\u30b6\u30fc\u3068\u6295\u7a3f\u3092\u8868\u3057\u307e\u3059\u3002<\/p>\n<p>\u4e0a\u8a18\u306e<a href=\"https:\/\/kinsta.com\/jp\/topics\/wordpress-plugins\/\">WordPress\u30d7\u30e9\u30b0\u30a4\u30f3<\/a>\u306e\u4f8b\u3092\u62e1\u5f35\u3057\u3066\u3001\u3053\u308c\u3089\u306e\u30af\u30e9\u30b9\u3092\u7d44\u307f\u8fbc\u307f\u3001\u6295\u7a3f\u306e\u4f5c\u8005\u306b\u95a2\u3059\u308b\u60c5\u5831\u3068\u6295\u7a3f\u81ea\u4f53\u306e\u8a73\u3057\u3044\u60c5\u5831\u3092\u8868\u793a\u3059\u308b\u30b7\u30e7\u30fc\u30c8\u30b3\u30fc\u30c9\u3092\u4f5c\u6210\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p><strong>wp-content\/plugins<\/strong>\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b<strong>my-oop-shortcode-handler-extended.php<\/strong>\u3068\u3057\u3066\u4fdd\u5b58\u3057\u3001\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u6709\u52b9\u5316\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-php\">&lt;?php\n\/**\n* Plugin Name: Extended OOP Shortcode Handler\n* Description: \u30b7\u30e7\u30fc\u30c8\u30b3\u30fc\u30c9\u30cf\u30f3\u30c9\u30e9\u3092\u62e1\u5f35\u3057\u6295\u7a3f\u3068\u4f5c\u8005\u306e\u60c5\u5831\u3092\u8868\u793a\u3057\u307e\u3059\u3002\n* Version: 1.1\n* Author: Your Name\n*\/\n\nclass ExtendedOOPShortcodeHandler {\n    public function __construct() {\n        add_shortcode('post_author_details', array($this,   \n'displayPostAuthorDetails'));\n    }\n\n    public function displayPostAuthorDetails($atts) {\n        global $post; \/\/ \u30b0\u30ed\u30fc\u30d0\u30eb$post\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b\u30a2\u30af\u30bb\u30b9\u3057\u3066\u73fe\u5728\u306e\u6295\u7a3f\u306e\u60c5\u5831\u3092\u53d6\u5f97\u3059\u308b\n\n        $attributes = shortcode_atts([\n            'post_id' =&gt; $post-&gt;ID, \/\/ \u30c7\u30d5\u30a9\u30eb\u30c8\u306f\u65e2\u5b58\u306e\u6295\u7a3fID\n        ], $atts);\n\n        $postDetails = get_post($attributes['post_id']); \/\/ WP_Post\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u53d6\u5f97\n        if (!$postDetails) {\n            return \"\u30da\u30fc\u30b8\u304c\u898b\u3064\u304b\u308a\u307e\u305b\u3093\u3067\u3057\u305f\u3002\";\n        }\n\n        $authorDetails = new WP_User($postDetails-&gt;post_author); \/\/ WP_User\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u53d6\u5f97\n\n        $output = \"&lt;div class='post-author-details'&gt;\";\n        $output .= \"&lt;h2&gt;\u4f5c\u8005\u60c5\u5831&lt;\/h2&gt;\";\n        $output .= \"&lt;p&gt;\u540d\u524d\uff1a\" . esc_html($authorDetails-&gt;display_name) . \n\"&lt;\/p&gt;\";\n        $output .= \"&lt;h2&gt;\u6295\u7a3f\u60c5\u5831&lt;\/h2&gt;\";\n        $output .= \"&lt;p&gt;\u30bf\u30a4\u30c8\u30eb\uff1a\" . esc_html($postDetails-&gt;post_title) . \"&lt;\/p&gt;\";\n        $output .= \"&lt;p&gt;\u30b3\u30f3\u30c6\u30f3\u30c4\uff1a\" . \nesc_html(wp_trim_words($postDetails-&gt;post_content, 20, '...')) . \"&lt;\/p&gt;\";\n        $output .= \"&lt;\/div&gt;\";\n\n        return $output;\n    }\n}\n\nnew ExtendedOOPShortcodeHandler();<\/code><\/pre>\n<p>\u3053\u306e\u62e1\u5f35\u30d0\u30fc\u30b8\u30e7\u30f3\u3067\u306f\u3001<code>[post_author_details post_id=\"1\"]<\/code>\u3068\u3044\u3046\u30b7\u30e7\u30fc\u30c8\u30b3\u30fc\u30c9\u304c\u751f\u6210\u3055\u308c\u307e\u3059\u3002<\/p>\n<p><figure style=\"width: 1001px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/kinsta.com\/wp-content\/uploads\/2024\/03\/shortcode-smaple-page.png\" alt=\"\u30b5\u30f3\u30d7\u30eb\u30da\u30fc\u30b8\u306e\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8\uff08\"[post_author_details post_id=\"1\"]\"\u30b3\u30fc\u30c9\u3068\u305d\u306e\u4e0b\u306b\"This is the rest of the article...\"\u3068\u3044\u3046\u6587\u7ae0\u304c\u3042\u308b\u3002\u305d\u306e\u4e0b\u306b\u306f\"Type \/ to choose a block\"\u3068\u3044\u3046\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u7d9a\u304f\uff09\" width=\"1001\" height=\"471\"><figcaption class=\"wp-caption-text\">\u62e1\u5f35\u30ab\u30b9\u30bf\u30e0\u30b7\u30e7\u30fc\u30c8\u30b3\u30fc\u30c9\u306e\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u8ffd\u52a0\u3057\u305f\u72b6\u614b\u306e\u30b5\u30f3\u30d7\u30eb\u30da\u30fc\u30b8<\/figcaption><\/figure>\u6295\u7a3f\u3084\u30da\u30fc\u30b8\u306b\u8ffd\u52a0\u3059\u308b\u3068\u3001\u6295\u7a3f\u306e\u4f5c\u8005\uff08<code>WP_User<\/code>\u30af\u30e9\u30b9\u3092\u4f7f\u7528\uff09\u3068\u6295\u7a3f\u81ea\u4f53\uff08<code>WP_Post<\/code>\u30af\u30e9\u30b9\u3092\u4f7f\u7528\uff09\u306b\u95a2\u3059\u308b\u60c5\u5831\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<h3>OOP\u3068WordPress REST API<\/h3>\n<p><a href=\"https:\/\/kinsta.com\/jp\/blog\/wordpress-rest-api\/\">WordPress REST API<\/a>\u306fWordPress\u306b\u8ffd\u52a0\u3055\u308c\u305f\u6700\u65b0\u306eAPI\u3067\u3001\u3053\u308c\u3092\u4f7f\u3063\u3066\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u4ecb\u3057\u3066\u30b5\u30a4\u30c8\u306e\u30c7\u30fc\u30bf\u3092\u6271\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u3053\u308c\u306b\u3082\u3001OOP\u304c\u6d3b\u7528\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u3001\u30ec\u30b9\u30dd\u30f3\u30b9\u3001\u30ea\u30af\u30a8\u30b9\u30c8\u306e\u51e6\u7406\u3092\u30af\u30e9\u30b9\u304c\u5b9a\u7fa9\u3057\u307e\u3059\u3002\u5f93\u6765\u306e\u624b\u7d9a\u304d\u7684\u306a\u30a2\u30d7\u30ed\u30fc\u30c1\u304b\u3089OOP\u63a1\u7528\u3078\u306e\u660e\u78ba\u306a\u79fb\u884c\u3092\u610f\u5473\u3059\u308b\u4e00\u4f8b\u3067\u3059\u3002<\/p>\n<p>OOP\u306e\u539f\u5247\u3068\u306f\u5bfe\u7167\u7684\u306b\u3001WordPress\u306e\u30b3\u30a2\u306e\u591a\u304f\u3001\u7279\u306b\u30c6\u30fc\u30de\u3084\u30d7\u30e9\u30b0\u30a4\u30f3API\u306a\u3069\u306e\u521d\u671f\u306e\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306f\u3001\u624b\u7d9a\u304d\u578b\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30b9\u30bf\u30a4\u30eb\u3067\u66f8\u304b\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u624b\u7d9a\u304d\u578b\u306b\u5206\u985e\u3055\u308c\u308b\u30a2\u30d7\u30ed\u30fc\u30c1\u3067\u306f\u30b0\u30ed\u30fc\u30d0\u30eb\u5909\u6570\u3092\u76f4\u63a5\u64cd\u4f5c\u3057\u3001\u30bf\u30b9\u30af\u306e\u4e00\u9023\u306e\u95a2\u6570\u306b\u4f9d\u5b58\u3059\u308b\u306e\u304c\u5178\u578b\u3067\u3059\u304c\u3001REST API\u306b\u304a\u3051\u308bOOP\u306f\u30ed\u30b8\u30c3\u30af\u3092\u30af\u30e9\u30b9\u5185\u306b\u30ab\u30d7\u30bb\u30eb\u5316\u3057\u307e\u3059\u3002\u3053\u306e\u3088\u3046\u306a\u7406\u7531\u3067\u3001\u3053\u308c\u3089\u306e\u30af\u30e9\u30b9\u5185\u306e\u7279\u5b9a\u306e\u30e1\u30bd\u30c3\u30c9\u304c\u3001\u6295\u7a3f\u306e\u30d5\u30a7\u30c3\u30c1\u3001\u4f5c\u6210\u3001\u66f4\u65b0\u3001\u524a\u9664\u306a\u3069\u306e\u30bf\u30b9\u30af\u3092\u51e6\u7406\u3059\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u3053\u308c\u306b\u3088\u308a\u3001\u61f8\u5ff5\u4e8b\u9805\u304c\u660e\u78ba\u306b\u5206\u96e2\u3055\u308c\u3001\u30b3\u30fc\u30c9\u306e\u62e1\u5f35\u3084\u30c7\u30d0\u30c3\u30b0\u304c\u5bb9\u6613\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u3092\u5b9a\u7fa9\u3057\u3001<code>GET \/wp-json\/wp\/v2\/posts<\/code>\u30ea\u30af\u30a8\u30b9\u30c8\u3067\u6295\u7a3f\u3092\u53d6\u5f97\u3059\u308b\u3088\u3046\u306a\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u51e6\u7406\u3059\u308b\u30af\u30e9\u30b9\u3092\u901a\u3057\u3066\u3001REST API\u306fWordPress\u30c7\u30fc\u30bf\u3068\u306e\u69cb\u9020\u7684\u306a\u5bfe\u8a71\u3092\u53ef\u80fd\u306b\u3057\u3001JSON\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u306e\u30ec\u30b9\u30dd\u30f3\u30b9\u3092\u8fd4\u3057\u307e\u3059\u3002<\/p>\n<h2>PHP\u3068WordPress\u306e\u30b5\u30fc\u30d0\u30fc\u306bKinsta\u3092\u6d3b\u7528\u3059\u308b<\/h2>\n<p><a href=\"https:\/\/kinsta.com\/jp\/\">Kinsta\u306e\u30af\u30e9\u30a6\u30c9\u30b5\u30fc\u30d0\u30fc\u30bd\u30ea\u30e5\u30fc\u30b7\u30e7\u30f3<\/a>\u306f\u3001PHP\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u6700\u9069\u5316\u3068WordPress\u5c02\u7528\u30b5\u30fc\u30d0\u30fc\u306e\u7ba1\u7406\u3092\u5305\u62ec\u7684\u306b\u652f\u63f4\u3057\u3001\u5f93\u6765\u578b\u306ePHP\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u3068WordPress\u56fa\u6709\u306e\u8981\u4ef6\u306b\u5bfe\u5fdc\u3057\u307e\u3059\u3002Google Cloud\u3092\u306f\u3058\u3081\u3068\u3059\u308b\u6700\u5148\u7aef\u306e\u6280\u8853\u3067\u69cb\u7bc9\u3055\u308c\u305f\u5805\u7262\u306a<a href=\"https:\/\/kinsta.com\/jp\/docs\/wordpress-hosting\/wordpress-getting-started\/wordpress-infrastructure\/\">\u30a4\u30f3\u30d5\u30e9\u30b9\u30c8\u30e9\u30af\u30c1\u30e3<\/a>\u306b\u3088\u308a\u3001Kinsta\u306fOOP\u30d9\u30fc\u30b9\u306ePHP\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u6bd4\u985e\u306a\u3044\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3068\u30b9\u30b1\u30fc\u30e9\u30d3\u30ea\u30c6\u30a3\u3092\u5b9f\u73fe\u3057\u307e\u3059\u3002<\/p>\n<p>WordPress\u30b5\u30a4\u30c8\u5411\u3051\u306b\u3001Kinsta\u306e<a href=\"https:\/\/kinsta.com\/jp\/wordpress-hosting\/\">WordPress\u5c02\u7528\u30b5\u30fc\u30d0\u30fc\u30b5\u30fc\u30d3\u30b9<\/a>\u306f\u81ea\u52d5\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3001\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u76e3\u8996\u3001\u30a8\u30f3\u30b8\u30cb\u30a2\u306b\u3088\u308b\u30b5\u30dd\u30fc\u30c8\u306a\u3069\u306e\u6a5f\u80fd\u3092\u63d0\u4f9b\u3057\u3066\u3044\u307e\u3059\u3002Kinsta\u306eWordPress\u5c02\u7528\u30de\u30cd\u30fc\u30b8\u30c9\u30af\u30e9\u30a6\u30c9\u30b5\u30fc\u30d0\u30fc\u30b5\u30fc\u30d3\u30b9\u306f\u3001\u624b\u9593\u3092\u304b\u3051\u305a\u306b\u512a\u308c\u305f\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3092\u5b9f\u73fe\u3057\u305f\u3044\u958b\u767a\u8005\u3084\u4e8b\u696d\u8005\u306e\u65b9\u306b\u3046\u3063\u3066\u3064\u3051\u3067\u3059\u3002<\/p>\n<h2>\u307e\u3068\u3081<\/h2>\n<p>\u4eca\u56de\u306e\u8a18\u4e8b\u3092\u901a\u3057\u3066\u3054\u7d39\u4ecb\u3057\u305f\u3068\u304a\u308a\u3001OOP\u306fPHP\u3068WordPress\u306e\u958b\u767a\u306b\u304a\u3044\u3066\u6bd4\u985e\u306e\u306a\u3044\u67d4\u8edf\u6027\u3001\u62e1\u5f35\u6027\u3001\u4fdd\u5b88\u6027\u3092\u53ef\u80fd\u306b\u3057\u307e\u3059\u3002<\/p>\n<p>WordPress\u5c02\u7528\u30de\u30cd\u30fc\u30b8\u30c9\u30af\u30e9\u30a6\u30c9\u30b5\u30fc\u30d0\u30fc\u4f1a\u793e\u3068\u3057\u3066\u3001Kinsta\u306f\u3053\u306e\u30cb\u30fc\u30ba\u3092\u8a8d\u8b58\u3057\u3001\u304a\u5ba2\u69d8\u306e\u3088\u3046\u306aOOP PHP\u958b\u767a\u8005\u306e\u65b9\u3005\u3092\u30b5\u30dd\u30fc\u30c8\u3059\u308b\u72ec\u81ea\u306e\u30bd\u30ea\u30e5\u30fc\u30b7\u30e7\u30f3\u3092\u3054\u7528\u610f\u3057\u3066\u3044\u307e\u3059\u3002Kinsta\u306e<a href=\"https:\/\/sevalla.com\/application-hosting\/\">\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3<\/a>\u304a\u3088\u3073WordPress\u5c02\u7528\u30de\u30cd\u30fc\u30b8\u30c9\u30af\u30e9\u30a6\u30c9\u30b5\u30fc\u30d0\u30fc\u30bd\u30ea\u30e5\u30fc\u30b7\u30e7\u30f3\u306f\u3001\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3001\u62e1\u5f35\u6027\u3001\u304a\u3088\u3073OOP\u30d9\u30fc\u30b9\u306eWordPress\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u69cb\u7bc9\u3092\u5f8c\u62bc\u3057\u3059\u308b\u8a2d\u8a08\u3067\u3059\u3002<\/p>\n<p><a href=\"https:\/\/kinsta.com\/jp\/signup\/wp\/\">\u4eca\u3059\u3050Kinsta\u3092\u304a\u8a66\u3057<\/a>\u3044\u305f\u3060\u304d\u3001WordPress\u30b5\u30a4\u30c8\u306e\u69cb\u7bc9\u3084\u7ba1\u7406\u304c\u3069\u308c\u3060\u3051\u6357\u308b\u304b\u305d\u306e\u6027\u80fd\u3092\u304a\u78ba\u304b\u3081\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><em>\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3067OOP\u306e\u5229\u70b9\u3092\u5b9f\u611f\u3057\u305f\u3053\u3068\u306f\u3042\u308a\u307e\u3059\u304b\uff1f\u307e\u305f\u306fOOP\u3067\u958b\u767a\u30d7\u30ed\u30bb\u30b9\u3092\u3069\u306e\u3088\u3046\u306b\u5909\u3048\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3068\u601d\u3044\u307e\u3059\u304b\uff1f\u4ee5\u4e0b\u306e\u30b3\u30e1\u30f3\u30c8\u6b04\u3067\u304a\u805e\u304b\u305b\u304f\u3060\u3055\u3044\u3002<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u306b\u304a\u3051\u308b\u91cd\u8981\u306a\u30d1\u30e9\u30c0\u30a4\u30e0\u3068\u3082\u8a00\u3048\u308b\u30aa\u30d6\u30b8 &#8230;<\/p>\n","protected":false},"author":199,"featured_media":56380,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_kinsta_gated_content":false,"_kinsta_gated_content_redirect":"","footnotes":""},"tags":[],"topic":[796,798,797,836,832,833],"class_list":["post-56379","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","topic-php-frameworks","topic-php-updates","topic-php-function","topic-wordpress-themes","topic-wordpress-performance","topic-wordpress-plugins"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v24.6 (Yoast SEO v24.6) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>PHP\u3068\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u6307\u5411\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u2500WordPress\u306e\u9032\u5316\uff5cKinsta\u00ae<\/title>\n<meta name=\"description\" content=\"PHP\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u6307\u5411\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u304cWordPress\u30b5\u30a4\u30c8\u958b\u767a\u306b\u3069\u306e\u3088\u3046\u306a\u5909\u5316\u3092\u3082\u305f\u3089\u3059\u306e\u304b\u8a73\u3057\u304f\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002OOP\u306e\u57fa\u790e\u3084\u30b3\u30c4\u3092\u30de\u30b9\u30bf\u30fc\u3057\u3066\u3001\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u30ec\u30d9\u30eb\u3092\u5f15\u304d\u4e0a\u3052\u307e\u3057\u3087\u3046\u3002\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/kinsta.com\/jp\/blog\/php-oop\/\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"PHP\u306b\u304a\u3051\u308b\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u6307\u5411\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u2500WordPress\u30b5\u30a4\u30c8\u958b\u767a\u306e\u9032\u5316\" \/>\n<meta property=\"og:description\" content=\"PHP\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u6307\u5411\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u304cWordPress\u30b5\u30a4\u30c8\u958b\u767a\u306b\u3069\u306e\u3088\u3046\u306a\u5909\u5316\u3092\u3082\u305f\u3089\u3059\u306e\u304b\u8a73\u3057\u304f\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002OOP\u306e\u57fa\u790e\u3084\u30b3\u30c4\u3092\u30de\u30b9\u30bf\u30fc\u3057\u3066\u3001\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u30ec\u30d9\u30eb\u3092\u5f15\u304d\u4e0a\u3052\u307e\u3057\u3087\u3046\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/kinsta.com\/jp\/blog\/php-oop\/\" \/>\n<meta property=\"og:site_name\" content=\"Kinsta\u00ae\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/Kinsta-Japan-334616080691171\/\" \/>\n<meta property=\"article:published_time\" content=\"2024-04-02T11:51:44+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-04T07:48:55+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2024\/03\/wp-oop-in-php.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1460\" \/>\n\t<meta property=\"og:image:height\" content=\"730\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Jeremy Holcombe\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:description\" content=\"PHP\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u6307\u5411\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u304cWordPress\u30b5\u30a4\u30c8\u958b\u767a\u306b\u3069\u306e\u3088\u3046\u306a\u5909\u5316\u3092\u3082\u305f\u3089\u3059\u306e\u304b\u8a73\u3057\u304f\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002OOP\u306e\u57fa\u790e\u3084\u30b3\u30c4\u3092\u30de\u30b9\u30bf\u30fc\u3057\u3066\u3001\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u30ec\u30d9\u30eb\u3092\u5f15\u304d\u4e0a\u3052\u307e\u3057\u3087\u3046\u3002\" \/>\n<meta name=\"twitter:image\" content=\"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2024\/03\/wp-oop-in-php.jpg\" \/>\n<meta name=\"twitter:creator\" content=\"@Kinsta_JP\" \/>\n<meta name=\"twitter:site\" content=\"@Kinsta_JP\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jeremy Holcombe\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"4\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/kinsta.com\/jp\/blog\/php-oop\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/kinsta.com\/jp\/blog\/php-oop\/\"},\"author\":{\"name\":\"Jeremy Holcombe\",\"@id\":\"https:\/\/kinsta.com\/jp\/#\/schema\/person\/4eee42881d7b5a73ebb4f58dd5223b21\"},\"headline\":\"PHP\u306b\u304a\u3051\u308b\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u6307\u5411\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u2500WordPress\u30b5\u30a4\u30c8\u958b\u767a\u306e\u9032\u5316\",\"datePublished\":\"2024-04-02T11:51:44+00:00\",\"dateModified\":\"2024-04-04T07:48:55+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/kinsta.com\/jp\/blog\/php-oop\/\"},\"wordCount\":193,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/kinsta.com\/jp\/#organization\"},\"image\":{\"@id\":\"https:\/\/kinsta.com\/jp\/blog\/php-oop\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2024\/03\/wp-oop-in-php.jpg\",\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/kinsta.com\/jp\/blog\/php-oop\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/kinsta.com\/jp\/blog\/php-oop\/\",\"url\":\"https:\/\/kinsta.com\/jp\/blog\/php-oop\/\",\"name\":\"PHP\u3068\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u6307\u5411\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u2500WordPress\u306e\u9032\u5316\uff5cKinsta\u00ae\",\"isPartOf\":{\"@id\":\"https:\/\/kinsta.com\/jp\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/kinsta.com\/jp\/blog\/php-oop\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/kinsta.com\/jp\/blog\/php-oop\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2024\/03\/wp-oop-in-php.jpg\",\"datePublished\":\"2024-04-02T11:51:44+00:00\",\"dateModified\":\"2024-04-04T07:48:55+00:00\",\"description\":\"PHP\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u6307\u5411\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u304cWordPress\u30b5\u30a4\u30c8\u958b\u767a\u306b\u3069\u306e\u3088\u3046\u306a\u5909\u5316\u3092\u3082\u305f\u3089\u3059\u306e\u304b\u8a73\u3057\u304f\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002OOP\u306e\u57fa\u790e\u3084\u30b3\u30c4\u3092\u30de\u30b9\u30bf\u30fc\u3057\u3066\u3001\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u30ec\u30d9\u30eb\u3092\u5f15\u304d\u4e0a\u3052\u307e\u3057\u3087\u3046\u3002\",\"breadcrumb\":{\"@id\":\"https:\/\/kinsta.com\/jp\/blog\/php-oop\/#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/kinsta.com\/jp\/blog\/php-oop\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/kinsta.com\/jp\/blog\/php-oop\/#primaryimage\",\"url\":\"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2024\/03\/wp-oop-in-php.jpg\",\"contentUrl\":\"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2024\/03\/wp-oop-in-php.jpg\",\"width\":1460,\"height\":730},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/kinsta.com\/jp\/blog\/php-oop\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/kinsta.com\/jp\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"PHP\u66f4\u65b0\u60c5\u5831\",\"item\":\"https:\/\/kinsta.com\/jp\/topics\/php-updates\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"PHP\u306b\u304a\u3051\u308b\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u6307\u5411\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u2500WordPress\u30b5\u30a4\u30c8\u958b\u767a\u306e\u9032\u5316\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/kinsta.com\/jp\/#website\",\"url\":\"https:\/\/kinsta.com\/jp\/\",\"name\":\"Kinsta\u00ae\",\"description\":\"\u9ad8\u901f\u304b\u3064\u5805\u7262\u306a\u30d7\u30ec\u30df\u30a2\u30e0\u30b5\u30fc\u30d0\u30fc\u30b5\u30fc\u30d3\u30b9\",\"publisher\":{\"@id\":\"https:\/\/kinsta.com\/jp\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/kinsta.com\/jp\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ja\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/kinsta.com\/jp\/#organization\",\"name\":\"Kinsta\",\"url\":\"https:\/\/kinsta.com\/jp\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/kinsta.com\/jp\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2023\/12\/kinsta-logo.jpeg\",\"contentUrl\":\"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2023\/12\/kinsta-logo.jpeg\",\"width\":500,\"height\":500,\"caption\":\"Kinsta\"},\"image\":{\"@id\":\"https:\/\/kinsta.com\/jp\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/Kinsta-Japan-334616080691171\/\",\"https:\/\/x.com\/Kinsta_JP\",\"https:\/\/www.instagram.com\/kinstahosting\/\",\"https:\/\/www.linkedin.com\/company\/kinsta\/\",\"https:\/\/www.pinterest.com\/kinstahosting\/\",\"https:\/\/www.youtube.com\/c\/Kinsta\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/kinsta.com\/jp\/#\/schema\/person\/4eee42881d7b5a73ebb4f58dd5223b21\",\"name\":\"Jeremy Holcombe\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/kinsta.com\/jp\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/0e17001f3bb37dbbe54fceef9bb547fa?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/0e17001f3bb37dbbe54fceef9bb547fa?s=96&d=mm&r=g\",\"caption\":\"Jeremy Holcombe\"},\"description\":\"Senior Editor at Kinsta, WordPress Web Developer, and Content Writer. Outside of all things WordPress, I enjoy the beach, golf, and movies. I also have tall people problems.\",\"sameAs\":[\"https:\/\/www.linkedin.com\/in\/jeremyholcombe\/\"],\"url\":\"https:\/\/kinsta.com\/jp\/blog\/author\/jeremyholcombe\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"PHP\u3068\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u6307\u5411\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u2500WordPress\u306e\u9032\u5316\uff5cKinsta\u00ae","description":"PHP\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u6307\u5411\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u304cWordPress\u30b5\u30a4\u30c8\u958b\u767a\u306b\u3069\u306e\u3088\u3046\u306a\u5909\u5316\u3092\u3082\u305f\u3089\u3059\u306e\u304b\u8a73\u3057\u304f\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002OOP\u306e\u57fa\u790e\u3084\u30b3\u30c4\u3092\u30de\u30b9\u30bf\u30fc\u3057\u3066\u3001\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u30ec\u30d9\u30eb\u3092\u5f15\u304d\u4e0a\u3052\u307e\u3057\u3087\u3046\u3002","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/kinsta.com\/jp\/blog\/php-oop\/","og_locale":"ja_JP","og_type":"article","og_title":"PHP\u306b\u304a\u3051\u308b\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u6307\u5411\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u2500WordPress\u30b5\u30a4\u30c8\u958b\u767a\u306e\u9032\u5316","og_description":"PHP\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u6307\u5411\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u304cWordPress\u30b5\u30a4\u30c8\u958b\u767a\u306b\u3069\u306e\u3088\u3046\u306a\u5909\u5316\u3092\u3082\u305f\u3089\u3059\u306e\u304b\u8a73\u3057\u304f\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002OOP\u306e\u57fa\u790e\u3084\u30b3\u30c4\u3092\u30de\u30b9\u30bf\u30fc\u3057\u3066\u3001\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u30ec\u30d9\u30eb\u3092\u5f15\u304d\u4e0a\u3052\u307e\u3057\u3087\u3046\u3002","og_url":"https:\/\/kinsta.com\/jp\/blog\/php-oop\/","og_site_name":"Kinsta\u00ae","article_publisher":"https:\/\/www.facebook.com\/Kinsta-Japan-334616080691171\/","article_published_time":"2024-04-02T11:51:44+00:00","article_modified_time":"2024-04-04T07:48:55+00:00","og_image":[{"width":1460,"height":730,"url":"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2024\/03\/wp-oop-in-php.jpg","type":"image\/jpeg"}],"author":"Jeremy Holcombe","twitter_card":"summary_large_image","twitter_description":"PHP\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u6307\u5411\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u304cWordPress\u30b5\u30a4\u30c8\u958b\u767a\u306b\u3069\u306e\u3088\u3046\u306a\u5909\u5316\u3092\u3082\u305f\u3089\u3059\u306e\u304b\u8a73\u3057\u304f\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002OOP\u306e\u57fa\u790e\u3084\u30b3\u30c4\u3092\u30de\u30b9\u30bf\u30fc\u3057\u3066\u3001\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u30ec\u30d9\u30eb\u3092\u5f15\u304d\u4e0a\u3052\u307e\u3057\u3087\u3046\u3002","twitter_image":"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2024\/03\/wp-oop-in-php.jpg","twitter_creator":"@Kinsta_JP","twitter_site":"@Kinsta_JP","twitter_misc":{"\u57f7\u7b46\u8005":"Jeremy Holcombe","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"4\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/kinsta.com\/jp\/blog\/php-oop\/#article","isPartOf":{"@id":"https:\/\/kinsta.com\/jp\/blog\/php-oop\/"},"author":{"name":"Jeremy Holcombe","@id":"https:\/\/kinsta.com\/jp\/#\/schema\/person\/4eee42881d7b5a73ebb4f58dd5223b21"},"headline":"PHP\u306b\u304a\u3051\u308b\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u6307\u5411\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u2500WordPress\u30b5\u30a4\u30c8\u958b\u767a\u306e\u9032\u5316","datePublished":"2024-04-02T11:51:44+00:00","dateModified":"2024-04-04T07:48:55+00:00","mainEntityOfPage":{"@id":"https:\/\/kinsta.com\/jp\/blog\/php-oop\/"},"wordCount":193,"commentCount":0,"publisher":{"@id":"https:\/\/kinsta.com\/jp\/#organization"},"image":{"@id":"https:\/\/kinsta.com\/jp\/blog\/php-oop\/#primaryimage"},"thumbnailUrl":"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2024\/03\/wp-oop-in-php.jpg","inLanguage":"ja","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/kinsta.com\/jp\/blog\/php-oop\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/kinsta.com\/jp\/blog\/php-oop\/","url":"https:\/\/kinsta.com\/jp\/blog\/php-oop\/","name":"PHP\u3068\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u6307\u5411\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u2500WordPress\u306e\u9032\u5316\uff5cKinsta\u00ae","isPartOf":{"@id":"https:\/\/kinsta.com\/jp\/#website"},"primaryImageOfPage":{"@id":"https:\/\/kinsta.com\/jp\/blog\/php-oop\/#primaryimage"},"image":{"@id":"https:\/\/kinsta.com\/jp\/blog\/php-oop\/#primaryimage"},"thumbnailUrl":"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2024\/03\/wp-oop-in-php.jpg","datePublished":"2024-04-02T11:51:44+00:00","dateModified":"2024-04-04T07:48:55+00:00","description":"PHP\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u6307\u5411\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u304cWordPress\u30b5\u30a4\u30c8\u958b\u767a\u306b\u3069\u306e\u3088\u3046\u306a\u5909\u5316\u3092\u3082\u305f\u3089\u3059\u306e\u304b\u8a73\u3057\u304f\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002OOP\u306e\u57fa\u790e\u3084\u30b3\u30c4\u3092\u30de\u30b9\u30bf\u30fc\u3057\u3066\u3001\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u30ec\u30d9\u30eb\u3092\u5f15\u304d\u4e0a\u3052\u307e\u3057\u3087\u3046\u3002","breadcrumb":{"@id":"https:\/\/kinsta.com\/jp\/blog\/php-oop\/#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/kinsta.com\/jp\/blog\/php-oop\/"]}]},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/kinsta.com\/jp\/blog\/php-oop\/#primaryimage","url":"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2024\/03\/wp-oop-in-php.jpg","contentUrl":"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2024\/03\/wp-oop-in-php.jpg","width":1460,"height":730},{"@type":"BreadcrumbList","@id":"https:\/\/kinsta.com\/jp\/blog\/php-oop\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/kinsta.com\/jp\/"},{"@type":"ListItem","position":2,"name":"PHP\u66f4\u65b0\u60c5\u5831","item":"https:\/\/kinsta.com\/jp\/topics\/php-updates\/"},{"@type":"ListItem","position":3,"name":"PHP\u306b\u304a\u3051\u308b\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u6307\u5411\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u2500WordPress\u30b5\u30a4\u30c8\u958b\u767a\u306e\u9032\u5316"}]},{"@type":"WebSite","@id":"https:\/\/kinsta.com\/jp\/#website","url":"https:\/\/kinsta.com\/jp\/","name":"Kinsta\u00ae","description":"\u9ad8\u901f\u304b\u3064\u5805\u7262\u306a\u30d7\u30ec\u30df\u30a2\u30e0\u30b5\u30fc\u30d0\u30fc\u30b5\u30fc\u30d3\u30b9","publisher":{"@id":"https:\/\/kinsta.com\/jp\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/kinsta.com\/jp\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ja"},{"@type":"Organization","@id":"https:\/\/kinsta.com\/jp\/#organization","name":"Kinsta","url":"https:\/\/kinsta.com\/jp\/","logo":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/kinsta.com\/jp\/#\/schema\/logo\/image\/","url":"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2023\/12\/kinsta-logo.jpeg","contentUrl":"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2023\/12\/kinsta-logo.jpeg","width":500,"height":500,"caption":"Kinsta"},"image":{"@id":"https:\/\/kinsta.com\/jp\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/Kinsta-Japan-334616080691171\/","https:\/\/x.com\/Kinsta_JP","https:\/\/www.instagram.com\/kinstahosting\/","https:\/\/www.linkedin.com\/company\/kinsta\/","https:\/\/www.pinterest.com\/kinstahosting\/","https:\/\/www.youtube.com\/c\/Kinsta"]},{"@type":"Person","@id":"https:\/\/kinsta.com\/jp\/#\/schema\/person\/4eee42881d7b5a73ebb4f58dd5223b21","name":"Jeremy Holcombe","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/kinsta.com\/jp\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/0e17001f3bb37dbbe54fceef9bb547fa?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0e17001f3bb37dbbe54fceef9bb547fa?s=96&d=mm&r=g","caption":"Jeremy Holcombe"},"description":"Senior Editor at Kinsta, WordPress Web Developer, and Content Writer. Outside of all things WordPress, I enjoy the beach, golf, and movies. I also have tall people problems.","sameAs":["https:\/\/www.linkedin.com\/in\/jeremyholcombe\/"],"url":"https:\/\/kinsta.com\/jp\/blog\/author\/jeremyholcombe\/"}]}},"acf":[],"_links":{"self":[{"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/posts\/56379","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/users\/199"}],"replies":[{"embeddable":true,"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/comments?post=56379"}],"version-history":[{"count":11,"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/posts\/56379\/revisions"}],"predecessor-version":[{"id":56480,"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/posts\/56379\/revisions\/56480"}],"alternate":[{"embeddable":true,"hreflang":"en","title":"English","href":"https:\/\/kinsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/56379\/translations\/en"},{"embeddable":true,"hreflang":"it","title":"Italian","href":"https:\/\/kinsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/56379\/translations\/it"},{"embeddable":true,"hreflang":"pt","title":"Portuguese","href":"https:\/\/kinsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/56379\/translations\/pt"},{"embeddable":true,"hreflang":"fr","title":"French","href":"https:\/\/kinsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/56379\/translations\/fr"},{"embeddable":true,"hreflang":"de","title":"German","href":"https:\/\/kinsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/56379\/translations\/de"},{"embeddable":true,"hreflang":"ja","title":"Japanese","href":"https:\/\/kinsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/56379\/translations\/jp"},{"embeddable":true,"hreflang":"nl","title":"Dutch","href":"https:\/\/kinsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/56379\/translations\/nl"},{"embeddable":true,"hreflang":"es","title":"Spanish","href":"https:\/\/kinsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/56379\/translations\/es"},{"href":"https:\/\/kinsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/56379\/tree"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/media\/56380"}],"wp:attachment":[{"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/media?parent=56379"}],"wp:term":[{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/tags?post=56379"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/topic?post=56379"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}