{"id":7658,"date":"2025-03-12T19:52:59","date_gmt":"2025-03-12T10:52:59","guid":{"rendered":"https:\/\/code-plus.jp\/gp\/?p=7658"},"modified":"2026-01-08T11:16:48","modified_gmt":"2026-01-08T02:16:48","slug":"post-7658","status":"publish","type":"post","link":"https:\/\/code-plus.jp\/gp\/post-7658\/","title":{"rendered":"\u56fa\u5b9a\u30da\u30fc\u30b8\u5185\u306e&lt;script&gt;\u30bf\u30b0\u3067\u3082\u30b7\u30e7\u30fc\u30c8\u30b3\u30fc\u30c9\u3092\u4f7f\u3048\u308b\u3088\u3046\u306b\u3059\u308b\u65b9\u6cd5"},"content":{"rendered":"<p>WordPress\u306e\u56fa\u5b9a\u30da\u30fc\u30b8\u5185\u3067<code>&lt;script&gt;<\/code>\u30bf\u30b0\u3092\u4f7f\u7528\u3059\u308b\u969b\u3001\u30b7\u30e7\u30fc\u30c8\u30b3\u30fc\u30c9\u304c\u6b63\u3057\u304f\u5c55\u958b\u3055\u308c\u306a\u3044\u3068\u3044\u3046\u554f\u984c\u306b\u906d\u9047\u3059\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001\u3053\u306e\u554f\u984c\u306e\u89e3\u6c7a\u65b9\u6cd5\u3068\u30ec\u30f3\u30bf\u30eb\u30b5\u30fc\u30d0\u30fc\u306b\u4f9d\u5b58\u3057\u306a\u3044\u5b89\u5168\u306a\u5b9f\u88c5\u65b9\u6cd5\u3092\u89e3\u8aac\u3057\u307e\u3059\u3002<\/p>\r\n<h2 class=\"fz-xl\">\u554f\u984c\u306e\u4f8b<\/h2>\r\n<p>\u4f8b\u3048\u3070\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30b7\u30e7\u30fc\u30c8\u30b3\u30fc\u30c9\u3092\u8a2d\u5b9a\u3057\u3066\u3044\u305f\u3068\u3057\u307e\u3059\uff1a<\/p>\r\n<pre><code class=\"language-php\">\/\/shortcodes.php \u307e\u305f\u306f functions.php<br \/>\r\n$urls = array(<br \/>\r\n  &#39;topthemeurl&#39; =&gt; &#39;https:\/\/example.com\/wp-content\/themes\/your-theme&#39;,<br \/>\r\n  &#39;commonsurl&#39; =&gt; &#39;https:\/\/example.com\/wp-content\/themes\/your-theme\/commons&#39;<br \/>\r\n);<br \/>\r\n<br \/>\r\nfunction register_shortcodes() {<br \/>\r\n  global $urls;<br \/>\r\n  <br \/>\r\n  foreach ($urls as $key =&gt; $value) {<br \/>\r\n    add_shortcode($key, function () use ($value) {<br \/>\r\n      return $value;<br \/>\r\n    });<br \/>\r\n  }<br \/>\r\n}<br \/>\r\n<\/code><\/pre><br \/>\r\n<p>\u56fa\u5b9a\u30da\u30fc\u30b8\u5185\u3067\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u8a18\u8ff0\u3057\u305f\u5834\u5408\uff1a<\/p>\r\n<pre><code class=\"language-html\">&lt;link rel=&quot;preload&quot; href=&quot;https:\/\/code-plus.jp\/gp\/wp-content\/themes\/zaratan\/js\/script.js&quot; as=&quot;script&quot;&gt;<br \/>\r\n&lt;script src=&quot;https:\/\/code-plus.jp\/gp\/wp-content\/themes\/zaratan\/js\/script.js&quot;&gt;&lt;\/script&gt;<br \/>\r\n<\/code><\/pre><br \/>\r\n<p><code>&lt;link&gt;<\/code>\u30bf\u30b0\u3067\u306f\u30b7\u30e7\u30fc\u30c8\u30b3\u30fc\u30c9\u304c\u6b63\u3057\u304f\u5c55\u958b\u3055\u308c\u307e\u3059\u304c\u3001<code>&lt;script&gt;<\/code>\u30bf\u30b0\u3067\u306f\u5c55\u958b\u3055\u308c\u306a\u3044\u3068\u3044\u3046\u554f\u984c\u304c\u767a\u751f\u3057\u307e\u3059\uff1a<\/p>\r\n<pre><code class=\"language-html\">&lt;!-- \u7d50\u679c\uff08view-source\uff09 --&gt;<br \/>\r\n&lt;link rel=&quot;preload&quot; href=&quot;https:\/\/example.com\/wp-content\/themes\/your-theme\/js\/script.js&quot; as=&quot;script&quot;&gt;<br \/>\r\n&lt;script src=&quot;https:\/\/code-plus.jp\/gp\/wp-content\/themes\/zaratan\/js\/script.js&quot;&gt;&lt;\/script&gt;<br \/>\r\n<\/code><\/pre><br \/>\r\n<h2 class=\"fz-xl\">\u89e3\u6c7a\u65b9\u6cd51: DOMDocument \u3092\u4f7f\u7528\u3059\u308b\u65b9\u6cd5<\/h2><br \/>\r\n<p>\u3053\u306e\u554f\u984c\u3092\u89e3\u6c7a\u3059\u308b\u306b\u306f\u3001<code>functions.php<\/code>\u306b\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u3092\u8ffd\u52a0\u3057\u307e\u3059\uff1a<\/p>\r\n<pre><code class=\"language-php\">\/\/script\u30bf\u30b0\u5185\u306e\u30b7\u30e7\u30fc\u30c8\u30b3\u30fc\u30c9\u3092\u51e6\u7406\u3059\u308b<br \/>\r\nadd_filter(&#39;the_content&#39;, &#39;process_shortcodes_in_script&#39;, 99);<br \/>\r\n<br \/>\r\nfunction process_shortcodes_in_script($content) {<br \/>\r\n    if (false === strpos($content, &#39;&lt;script&#39;)) {<br \/>\r\n        return $content;<br \/>\r\n    }<br \/>\r\n<br \/>\r\n    \/\/DOMDocument\u3092\u4f7f\u7528\u3057\u3066HTML\u3092\u89e3\u6790<br \/>\r\n    $dom = new DOMDocument();<br \/>\r\n    \/\/HTML5\u306e\u30bf\u30b0\u3092\u9069\u5207\u306b\u51e6\u7406\u3059\u308b\u305f\u3081\u306e\u8a2d\u5b9a<br \/>\r\n    libxml_use_internal_errors(true);<br \/>\r\n    $dom-&gt;loadHTML(mb_convert_encoding($content, &#39;HTML-ENTITIES&#39;, &#39;UTF-8&#39;), LIBXML_HTML_NOIMPLIED | LIBXML_HTML_NODEFDTD);<br \/>\r\n    libxml_clear_errors();<br \/>\r\n<br \/>\r\n    \/\/script\u30bf\u30b0\u3092\u691c\u7d22<br \/>\r\n    $scripts = $dom-&gt;getElementsByTagName(&#39;script&#39;);<br \/>\r\n    <br \/>\r\n    \/\/\u5404script\u30bf\u30b0\u306b\u5bfe\u3057\u3066\u51e6\u7406<br \/>\r\n    foreach ($scripts as $script) {<br \/>\r\n        \/\/src\u5c5e\u6027\u3092\u53d6\u5f97<br \/>\r\n        $src = $script-&gt;getAttribute(&#39;src&#39;);<br \/>\r\n        if ($src) {<br \/>\r\n            \/\/src\u5c5e\u6027\u5185\u306e\u30b7\u30e7\u30fc\u30c8\u30b3\u30fc\u30c9\u3092\u51e6\u7406<br \/>\r\n            $new_src = do_shortcode($src);<br \/>\r\n            $script-&gt;setAttribute(&#39;src&#39;, $new_src);<br \/>\r\n        }<br \/>\r\n    }<br \/>\r\n<br \/>\r\n    \/\/\u5909\u66f4\u3092\u9069\u7528\u3057\u305fHTML\u3092\u8fd4\u3059<br \/>\r\n    $new_content = $dom-&gt;saveHTML();<br \/>\r\n    <br \/>\r\n    \/\/\u4f59\u5206\u306a\u30bf\u30b0\u3092\u524a\u9664<br \/>\r\n    $new_content = preg_replace(&#39;\/&lt;(!DOCTYPE|html|body).*?&gt;|&lt;\\\/(html|body)&gt;\/&#39;, &#39;&#39;, $new_content);<br \/>\r\n    <br \/>\r\n    return $new_content;<br \/>\r\n}<br \/>\r\n<\/code><\/pre><br \/>\r\n<p><strong>\u6ce8\u610f\u70b9<\/strong>: \u3053\u306e\u65b9\u6cd5\u306f\u4e00\u90e8\u306e\u30ec\u30f3\u30bf\u30eb\u30b5\u30fc\u30d0\u30fc\uff08\u30ab\u30e9\u30d5\u30eb\u30dc\u30c3\u30af\u30b9\u306a\u3069\uff09\u3067\u306f\u52d5\u4f5c\u3057\u307e\u3059\u304c\u3001\u30a8\u30c3\u30af\u30b9\u30b5\u30fc\u30d0\u30fc\u3084\u30d8\u30c6\u30e0\u30eb\u306a\u3069\u306e\u4e00\u90e8\u306e\u30b5\u30fc\u30d0\u30fc\u3067\u306f\u3001\u30a8\u30e9\u30fc\u51e6\u7406\u304c\u53b3\u683c\u306a\u305f\u3081\u52d5\u4f5c\u3057\u306a\u3044\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\r\n<h2 class=\"fz-xl\">\u89e3\u6c7a\u65b9\u6cd52: \u6b63\u898f\u8868\u73fe\u3092\u4f7f\u7528\u3059\u308b\u65b9\u6cd5\uff08\u30b5\u30fc\u30d0\u30fc\u4e92\u63db\u6027\u5411\u4e0a\u7248\uff09<\/h2>\r\n<p>\u3088\u308a\u591a\u304f\u306e\u30ec\u30f3\u30bf\u30eb\u30b5\u30fc\u30d0\u30fc\u3067\u5b89\u5b9a\u3057\u3066\u52d5\u4f5c\u3059\u308b\u6539\u826f\u7248\u30b3\u30fc\u30c9\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002\u3053\u306e\u65b9\u6cd5\u3067\u306f\u3001DOMDocument\u3067\u306f\u306a\u304f\u6b63\u898f\u8868\u73fe\u3092\u4f7f\u7528\u3057\u3066\u3044\u307e\u3059\uff1a<\/p>\r\n<pre><code class=\"language-php\">\/* \u30da\u30fc\u30b8\u5185\u306e&lt;script&gt;\u30bf\u30b0\u3067\u3082\u30b7\u30e7\u30fc\u30c8\u30b3\u30fc\u30c9\u3092\u51e6\u7406\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b *\/<br \/>\r\nfunction process_shortcodes_in_script($content) {<br \/>\r\n  \/\/\u9ad8\u901f\u30c1\u30a7\u30c3\u30af - script\u30bf\u30b0\u304c\u7121\u3051\u308c\u3070\u51e6\u7406\u3057\u306a\u3044<br \/>\r\n  if (false === strpos($content, &#39;&lt;script&#39;)) {<br \/>\r\n    return $content;<br \/>\r\n  }<br \/>\r\n<br \/>\r\n  \/\/\u6b63\u898f\u8868\u73fe\u3092\u4f7f\u7528\u3057\u3066script\u30bf\u30b0\u306esrc\u5c5e\u6027\u3092\u898b\u3064\u3051\u3066\u30b7\u30e7\u30fc\u30c8\u30b3\u30fc\u30c9\u3092\u51e6\u7406<br \/>\r\n  $pattern = &#39;\/&lt;script\\s+[^&gt;]*?src=([&quot;\\&#39;])([^&quot;\\&#39;]*)\\1[^&gt;]*&gt;\/i&#39;;<br \/>\r\n<br \/>\r\n  return preg_replace_callback($pattern, function($matches) {<br \/>\r\n    $src = $matches[2];<br \/>\r\n    \/\/\u30b7\u30e7\u30fc\u30c8\u30b3\u30fc\u30c9\u304c\u3042\u308b\u5834\u5408\u306e\u307f\u51e6\u7406<br \/>\r\n    if (strpos($src, &#39;[&#39;) !== false &amp;&amp; strpos($src, &#39;]&#39;) !== false) {<br \/>\r\n      $processed_src = do_shortcode($src);<br \/>\r\n      \/\/\u5c5e\u6027\u5024\u3092\u66f4\u65b0<br \/>\r\n      return str_replace($src, $processed_src, $matches[0]);<br \/>\r\n    }<br \/>\r\n    \/\/\u30b7\u30e7\u30fc\u30c8\u30b3\u30fc\u30c9\u304c\u7121\u3051\u308c\u3070\u305d\u306e\u307e\u307e\u8fd4\u3059<br \/>\r\n    return $matches[0];<br \/>\r\n  }, $content);<br \/>\r\n}<br \/>\r\nadd_filter(&#39;the_content&#39;, &#39;process_shortcodes_in_script&#39;, 99);<br \/>\r\n<\/code><\/pre><br \/>\r\n<h2 class=\"fz-xl\">\u62e1\u5f35: \u8907\u6570\u306e\u5c5e\u6027\u306b\u5bfe\u5fdc\u3057\u305f\u7d71\u5408\u7248<\/h2><br \/>\r\n<p>\u3088\u308a\u5e45\u5e83\u3044\u7528\u9014\u306b\u5bfe\u5fdc\u3059\u308b\u305f\u3081\u3001<code>script<\/code>\u306e<code>src<\/code>\u5c5e\u6027\u3060\u3051\u3067\u306a\u304f\u3001\u4ed6\u306e\u5c5e\u6027\uff08<code>href<\/code>\u3001<code>onclick<\/code>\u306a\u3069\uff09\u3067\u3082\u30b7\u30e7\u30fc\u30c8\u30b3\u30fc\u30c9\u3092\u51e6\u7406\u3067\u304d\u308b\u7d71\u5408\u7248\u30b3\u30fc\u30c9\u3092\u7d39\u4ecb\u3057\u307e\u3059\uff1a<\/p>\r\n<pre><code class=\"language-php\">\/* HTML\u8981\u7d20\u306e\u5c5e\u6027\u5185\u306e\u30b7\u30e7\u30fc\u30c8\u30b3\u30fc\u30c9\u3092\u51e6\u7406\u3059\u308b\u7d71\u5408\u95a2\u6570 *\/<br \/>\r\nfunction process_shortcodes_in_html_attributes($content) {<br \/>\r\n    \/\/\u9ad8\u901f\u30c1\u30a7\u30c3\u30af - \u30b7\u30e7\u30fc\u30c8\u30b3\u30fc\u30c9\u304c\u306a\u3051\u308c\u3070\u51e6\u7406\u3057\u306a\u3044<br \/>\r\n    if (false === strpos($content, &#39;[&#39;)) {<br \/>\r\n        return $content;<br \/>\r\n    }<br \/>\r\n    <br \/>\r\n    \/\/\u51e6\u7406\u3059\u308b\u5c5e\u6027\u306e\u30ea\u30b9\u30c8<br \/>\r\n    $attributes = array(&#39;src&#39;, &#39;href&#39;, &#39;onclick&#39;, &#39;data-src&#39;);<br \/>\r\n    <br \/>\r\n    \/\/\u5404\u5c5e\u6027\u306b\u5bfe\u3057\u3066\u51e6\u7406\u3092\u884c\u3046<br \/>\r\n    foreach ($attributes as $attr) {<br \/>\r\n        \/\/\u5c5e\u6027\u3092\u542b\u3080\u30bf\u30b0\u3092\u691c\u7d22\u3059\u308b\u6b63\u898f\u8868\u73fe<br \/>\r\n        $pattern = &#39;\/(&#39; . $attr . &#39;)=([&quot;\\&#39;])([^&quot;\\&#39;]*?)\\2\/i&#39;;<br \/>\r\n        <br \/>\r\n        \/\/\u30b3\u30fc\u30eb\u30d0\u30c3\u30af\u95a2\u6570\u3067\u5c5e\u6027\u5024\u5185\u306e\u30b7\u30e7\u30fc\u30c8\u30b3\u30fc\u30c9\u3092\u51e6\u7406<br \/>\r\n        $content = preg_replace_callback($pattern, function($matches) {<br \/>\r\n            $attr_name = $matches[1];  \/\/\u5c5e\u6027\u540d<br \/>\r\n            $quote = $matches[2];      \/\/\u5f15\u7528\u7b26 (&#39; \u307e\u305f\u306f &quot;)<br \/>\r\n            $attr_value = $matches[3]; \/\/\u5c5e\u6027\u5024<br \/>\r\n            <br \/>\r\n            \/\/\u30b7\u30e7\u30fc\u30c8\u30b3\u30fc\u30c9\u304c\u542b\u307e\u308c\u308b\u5834\u5408\u306e\u307f\u51e6\u7406<br \/>\r\n            if (strpos($attr_value, &#39;[&#39;) !== false &amp;&amp; strpos($attr_value, &#39;]&#39;) !== false) {<br \/>\r\n                $processed_value = do_shortcode($attr_value);<br \/>\r\n                return $attr_name . &#39;=&#39; . $quote . $processed_value . $quote;<br \/>\r\n            }<br \/>\r\n            <br \/>\r\n            \/\/\u30b7\u30e7\u30fc\u30c8\u30b3\u30fc\u30c9\u304c\u306a\u3051\u308c\u3070\u305d\u306e\u307e\u307e\u8fd4\u3059<br \/>\r\n            return $matches[0];<br \/>\r\n        }, $content);<br \/>\r\n    }<br \/>\r\n    <br \/>\r\n    return $content;<br \/>\r\n}<br \/>\r\n<br \/>\r\n\/\/\u30d5\u30a3\u30eb\u30bf\u30fc\u3092\u8ffd\u52a0<br \/>\r\nadd_filter(&#39;the_content&#39;, &#39;process_shortcodes_in_html_attributes&#39;, 99);<br \/>\r\n<\/code><\/pre><br \/>\r\n<p><code>$attributes<\/code> \u914d\u5217\u306b\u51e6\u7406\u3057\u305f\u3044\u5c5e\u6027\u540d\u3092\u8ffd\u52a0\u3059\u308b\u3060\u3051\u3067\u3001\u7c21\u5358\u306b\u5bfe\u8c61\u3092\u62e1\u5f35\u3067\u304d\u307e\u3059\u3002\u4f8b\u3048\u3070\u3001<code>data-*<\/code>\u5c5e\u6027\u3001<code>srcset<\/code>\u3001<code>alt<\/code>\u306a\u3069\u3092\u8ffd\u52a0\u3059\u308b\u3053\u3068\u3082\u53ef\u80fd\u3067\u3059\u3002<\/p>\r\n<h2 class=\"fz-xl\">\u4f7f\u7528\u4f8b<\/h2>\r\n<p>\u3053\u306e\u30b3\u30fc\u30c9\u3092<code>functions.php<\/code>\u306b\u8ffd\u52a0\u5f8c\u306f\u3001\u56fa\u5b9a\u30da\u30fc\u30b8\u5185\u3067\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u8a18\u8ff0\u3067\u304d\u307e\u3059\uff1a<\/p>\r\n<pre><code class=\"language-html\">&lt;link rel=&quot;preload&quot; href=&quot;https:\/\/code-plus.jp\/gp\/wp-content\/themes\/zaratan\/js\/script.js&quot; as=&quot;script&quot;&gt;<br \/>\r\n&lt;script src=&quot;https:\/\/code-plus.jp\/gp\/wp-content\/themes\/zaratan\/js\/script.js&quot;&gt;&lt;\/script&gt;<br \/>\r\n&lt;a href=&quot;https:\/\/code-plus.jp\/gp\/wp-content\/themes\/zaratan\/page.html&quot;&gt;\u30ea\u30f3\u30af&lt;\/a&gt;<br \/>\r\n&lt;div data-src=&quot;https:\/\/code-plus.jp\/gp\/wp-content\/themes\/zaratan\/commons\/images\/photo.jpg&quot;&gt;&lt;\/div&gt;<br \/>\r\n<\/code><\/pre><br \/>\r\n<p>\u5168\u3066\u306e\u5c5e\u6027\u3067\u30b7\u30e7\u30fc\u30c8\u30b3\u30fc\u30c9\u304c\u6b63\u3057\u304f\u5c55\u958b\u3055\u308c\u307e\u3059\u3002<\/p>\r\n<h2 class=\"fz-xl\">\u30ec\u30f3\u30bf\u30eb\u30b5\u30fc\u30d0\u30fc\u5225\u306e\u52d5\u4f5c\u72b6\u6cc1<\/h2>\r\n<table class=\"table tbl-responsive\">\r\n  <thead>\r\n  <tr class=\"rung\">\r\n    <th class=\"therm\">\u30b5\u30fc\u30d0\u30fc<\/th>\r\n    <td class=\"tdata\">\u65b9\u6cd51 (DOMDocument)<\/td>\r\n    <td class=\"tdata\">\u65b9\u6cd52 (\u6b63\u898f\u8868\u73fe)<\/td>\r\n    <td class=\"tdata\">\u7d71\u5408\u7248<\/td>\r\n  <\/tr>\r\n<\/thead><tbody>\r\n<tr class=\"rung\">\r\n  <th class=\"therm\">\u30ab\u30e9\u30d5\u30eb\u30dc\u30c3\u30af\u30b9<\/th>\r\n  <td class=\"tdata\">\u2705<\/td>\r\n  <td class=\"tdata\">\u2705<\/td>\r\n  <td class=\"tdata\">\u2705<\/td>\r\n<\/tr><tr class=\"rung\">\r\n<th class=\"therm\">\u30a8\u30c3\u30af\u30b9\u30b5\u30fc\u30d0\u30fc<\/th>\r\n<td class=\"tdata\">\u274c<\/td>\r\n<td class=\"tdata\">\u2705<\/td>\r\n<td class=\"tdata\">\u2705<\/td>\r\n<\/tr><tr class=\"rung\">\r\n<th class=\"therm\">\u30d8\u30c6\u30e0\u30eb<\/th>\r\n<td class=\"tdata\">\u274c<\/td>\r\n<td class=\"tdata\">\u2705<\/td>\r\n<td class=\"tdata\">\u2705<\/td>\r\n<\/tr><tr class=\"rung\">\r\n<th class=\"therm\">\u30ed\u30ea\u30dd\u30c3\u30d7<\/th>\r\n<td class=\"tdata\">\u25b3<\/td>\r\n<td class=\"tdata\">\u2705<\/td>\r\n<td class=\"tdata\">\u2705<\/td>\r\n<\/tr><tr class=\"rung\">\r\n<th class=\"therm\">\u3055\u304f\u3089\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8<\/th>\r\n<td class=\"tdata\">\u25b3<\/td>\r\n<td class=\"tdata\">\u2705<\/td>\r\n<td class=\"tdata\">\u2705<\/td>\r\n<\/tr>\r\n<\/tbody><\/table>\r\n<p>\u203b \u25b3\u306f\u8a2d\u5b9a\u306b\u3088\u3063\u3066\u52d5\u4f5c\u304c\u7570\u306a\u308b\u5834\u5408\u304c\u3042\u308b\u3053\u3068\u3092\u793a\u3057\u307e\u3059<\/p>\r\n<h2 class=\"fz-xl\">\u307e\u3068\u3081<\/h2>\r\n<p>\u6b63\u898f\u8868\u73fe\u3092\u4f7f\u7528\u3057\u305f\u65b9\u6cd52\u307e\u305f\u306f\u7d71\u5408\u7248\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u307b\u3068\u3093\u3069\u306e\u30ec\u30f3\u30bf\u30eb\u30b5\u30fc\u30d0\u30fc\u3067WordPress\u306e\u56fa\u5b9a\u30da\u30fc\u30b8\u5185\u306eHTML\u5c5e\u6027\u5185\u3067\u30b7\u30e7\u30fc\u30c8\u30b3\u30fc\u30c9\u3092\u4f7f\u7528\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002\u3053\u308c\u306f\u7279\u306b\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u5834\u5408\u306b\u4fbf\u5229\u3067\u3059\uff1a<\/p>\r\n<ul style=\"list-style-type:bullet;\">\r\n<li>\u30c6\u30fc\u30de\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u30d1\u30b9\u3092\u52d5\u7684\u306b\u7ba1\u7406\u3057\u305f\u3044\u5834\u5408<\/li>\r\n<li>\u30de\u30eb\u30c1\u30b5\u30a4\u30c8\u74b0\u5883\u3067\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u30d1\u30b9\u3092\u67d4\u8edf\u306b\u5236\u5fa1\u3057\u305f\u3044\u5834\u5408<\/li>\r\n<li>\u4e0b\u5c64\u306b\u5225\u306eWordPress\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3044\u308b\u5834\u5408\u306e\u30d1\u30b9\u7ba1\u7406<\/li>\r\n<li>JavaScript\u30d5\u30a1\u30a4\u30eb\u3084\u30ea\u30bd\u30fc\u30b9\u306e\u53c2\u7167\u3092\u4e00\u5143\u7ba1\u7406\u3057\u305f\u3044\u5834\u5408<\/li>\r\n<\/ul>\r\n<p>\u5b89\u5b9a\u6027\u3092\u91cd\u8996\u3059\u308b\u5834\u5408\u306f\u3001\u5fc5\u305a\u65b9\u6cd52\u307e\u305f\u306f\u7d71\u5408\u7248\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3092\u304a\u52e7\u3081\u3057\u307e\u3059\u3002<\/p>\r\n","protected":false},"excerpt":{"rendered":"WordPress\u306e\u56fa\u5b9a\u30da\u30fc\u30b8\u5185\u3067&lt;script&gt;\u30bf\u30b0\u3092\u4f7f\u7528\u3059\u308b\u969b\u3001\u30b7\u30e7\u30fc\u30c8\u30b3\u30fc\u30c9\u304c\u6b63\u3057\u304f\u5c55\u958b\u3055\u308c\u306a\u3044\u3068\u3044\u3046\u554f\u984c\u306b\u906d\u9047\u3059\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001\u3053\u306e\u554f\u984c\u306e\u89e3\u6c7a\u65b9\u6cd5\u3068\u30ec\u30f3\u30bf\u30eb\u30b5\u30fc\u30d0\u30fc\u306b\u4f9d\u5b58\u3057\u306a\u3044\u5b89\u5168\u306a\u5b9f[...]","protected":false},"author":1,"featured_media":7661,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"sns_share_botton_hide":"","vkExUnit_sns_title":"","_vk_print_noindex":"","footnotes":"","vk-ltc-link":"","vk-ltc-target":"0"},"categories":[13],"tags":[],"group":[],"pg":[],"class_list":["post-7658","post","type-post","status-publish","format-standard","has-post-thumbnail","category-wordpress"],"acf":[],"veu_head_title_object":{"title":"","add_site_title":""},"_links":{"self":[{"href":"https:\/\/code-plus.jp\/gp\/wp-json\/wp\/v2\/posts\/7658","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/code-plus.jp\/gp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/code-plus.jp\/gp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/code-plus.jp\/gp\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/code-plus.jp\/gp\/wp-json\/wp\/v2\/comments?post=7658"}],"version-history":[{"count":0,"href":"https:\/\/code-plus.jp\/gp\/wp-json\/wp\/v2\/posts\/7658\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/code-plus.jp\/gp\/wp-json\/wp\/v2\/media\/7661"}],"wp:attachment":[{"href":"https:\/\/code-plus.jp\/gp\/wp-json\/wp\/v2\/media?parent=7658"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/code-plus.jp\/gp\/wp-json\/wp\/v2\/categories?post=7658"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/code-plus.jp\/gp\/wp-json\/wp\/v2\/tags?post=7658"},{"taxonomy":"group","embeddable":true,"href":"https:\/\/code-plus.jp\/gp\/wp-json\/wp\/v2\/group?post=7658"},{"taxonomy":"pg","embeddable":true,"href":"https:\/\/code-plus.jp\/gp\/wp-json\/wp\/v2\/pg?post=7658"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}