{"id":3032,"date":"2026-01-17T13:28:57","date_gmt":"2026-01-17T04:28:57","guid":{"rendered":"https:\/\/blog.shakado.jp\/tenshu\/?p=3032"},"modified":"2026-01-17T13:59:31","modified_gmt":"2026-01-17T04:59:31","slug":"google%e3%81%aeai%e3%83%a2%e3%83%bc%e3%83%89%e3%81%ae%e5%87%84%e3%81%95%e5%ae%9f%e6%84%9f","status":"publish","type":"post","link":"https:\/\/blog.shakado.jp\/tenshu\/2026\/01\/archives\/3032.html","title":{"rendered":"Google\u306eAI\u30e2\u30fc\u30c9\u306e\u51c4\u3055\u5b9f\u611f"},"content":{"rendered":"\n<p>\u73fe\u5728\u3001\u91c8\u8fe6\u5802\u30cd\u30c3\u30c8\u30b7\u30e7\u30c3\u30d7\u306e\u904b\u55b6\u3067\u4f7f\u7528\u3057\u3066\u304a\u308a\u307e\u3059\u30bd\u30d5\u30c8\u306f\u3001WordPress\u3068\u547c\u3070\u308c\u308bCMS\uff08\u30b3\u30f3\u30c6\u30f3\u30c4\u30fb\u30de\u30cd\u30fc\u30b8\u30fb\u30b7\u30b9\u30c6\u30e0\u306e\u7565\uff09\u306b\u3001Welcart\u3068\u8a00\u3046\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u7d44\u307f\u5408\u308f\u305b\u3066\u304a\u308a\u307e\u3059\u3002<\/p>\n<p>\u305d\u306eWordPress\u306f\u3001PHP\u3068\u547c\u3070\u308c\u308b\u30d7\u30ed\u30b0\u30e9\u30e0\u8a00\u8a9e\u3067\u4f5c\u3089\u308c\u3066\u3044\u3066\u3001\u30b3\u30a2\u30b5\u30fc\u30d0\u30fcV1\u3067\u306fPHP7.4\u3092\u4f7f\u3063\u3066\u3044\u307e\u3057\u305f\u304c\u3001\u30b3\u30a2\u30b5\u30fc\u30d0\u30fcV2\u306b\u5f15\u8d8a\u79fb\u8ee2\u3092\u6a5f\u306b\u3001PHP8.0\u4ee5\u4e0a\u306b\u30d0\u30fc\u30b8\u30e7\u30f3\u3092UP\u3055\u305b\u307e\u3057\u305f\u3002<\/p>\n<p>\u3057\u304b\u3057\u3001PHP7.4\u3067\u52d5\u4f5c\u3057\u3066\u3044\u305f\u3082\u306e\u304cPHP8.0\u4ee5\u4e0a\u3067\u306f\u52d5\u4f5c\u3057\u306a\u304f\u306a\u308a\u3001\u539f\u56e0\u3092\u8abf\u3079\u308b\u3068\u3001\u30b3\u30fc\u30c9\u306e\u66f8\u304d\u65b9\u304c\u5909\u66f4\u3055\u308c\u3066\u3001\u4ee5\u524d\u306e\u3082\u306e\u304c\u901a\u7528\u3057\u306a\u3044\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3057\u305f\u3002<\/p>\n<p>\u305f\u3060\u3001\u3069\u3053\u306e\u30f5\u6240\u3092\u3001\u3069\u306e\u3088\u3046\u306b\u66f8\u304d\u63db\u3048\u308c\u3070\u826f\u3044\u306e\u304b\u307e\u3067\u306f\u3001\u7d20\u4eba\u3067\u306f\u304a\u624b\u4e0a\u3052\u72b6\u614b\u3067\u3057\u305f\u3002\u3057\u304b\u3057\u3001\u30c0\u30e1\u3082\u3068\u3067\u3001\u5df7\u3067\u5642\u306eAI\u304f\u3093\u306b\u5c0b\u306d\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<p>\u4ee5\u4e0b\u306ePHP7.4\u3067\u52d5\u4f5c\u3057\u3066\u3044\u305f\u30b3\u30fc\u30c9\u3092PHP8.0\u4ee5\u4e0a\u306b\u5bfe\u5fdc\u3055\u305b\u3066\u3068<\/p>\n<hr>\n\n\n\n<p>&lt;div class=&#8221;field&#8221;&gt; <br>&lt;?php _e(&#8216;stock status&#8217;, &#8216;usces&#8217;); ?&gt; : &lt;?php usces_the_itemZaiko(); ?&gt;<br>&lt;?php if( &#8221; != usces_the_itemZaikoNum(&#8216;return&#8217;) ): ?&gt; <br>\uff08\u5728\u5eab\u6570\uff1a&lt;?php usces_the_itemZaikoNum(); ?&gt;\uff09 <br>&lt;?php endif; ?&gt; <br>&lt;\/div&gt;<\/p>\n<hr>\n<p>\u3059\u308b\u3068\u3001\u7b54\u3048\u304c\u4e00\u77ac\u3067\u753b\u9762\u4e0a\u306b\u73fe\u308c\u3001\u65e9\u901fWEB\u4e0a\u3067\u8a66\u3057\u3066\u898b\u308b\u3068\u3001\u30a8\u30e9\u30fc\u306a\u304f\u52d5\u4f5c\u3057\u3066\u304f\u308c\u307e\u3057\u305f\u3002\u672c\u6765\u306a\u3089\u6709\u6599\u3067\u304a\u9858\u3044\u3057\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u3044\u6848\u4ef6\u3067\u3082\u3001\u7121\u6599\u3067\u66f8\u304d\u63db\u3048\u3066\u3044\u305f\u3060\u3051\u307e\u3057\u305f\u3002<\/p>\n<p>\u4ee5\u4e0b\u56de\u7b54<\/p>\n\n\n\n<p>PHP 8.0\u4ee5\u964d\u3067\u306f\u3001<strong><code>usces_the_itemZaikoNum('return')<\/code>&nbsp;\u304c\u7a7a\u6587\u5b57&nbsp;<code>''<\/code>&nbsp;\u3067\u306f\u306a\u304f&nbsp;<code>null<\/code>&nbsp;\u3092\u8fd4\u3059\u53ef\u80fd\u6027\u304c\u3042\u308b<\/strong>\u3053\u3068\u3001\u304a\u3088\u3073PHP 8.x\u306e\u53b3\u683c\u306a\u578b\u6bd4\u8f03\u3084\u95a2\u6570\u5f15\u6570\u306e\u4ed5\u69d8\u5909\u66f4\u306b\u3088\u308a\u30a8\u30e9\u30fc\u3084\u8b66\u544a\u304c\u767a\u751f\u3057\u3084\u3059\u304f\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>PHP 8.x\uff082026\u5e74\u73fe\u5728\u306e\u6a19\u6e96\u4ed5\u69d8\uff09\u306b\u9069\u5408\u3057\u305f\u5b89\u5168\u306a\u66f8\u304d\u65b9\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u4fee\u6b63\u5f8c\u306e\u30b3\u30fc\u30c9<\/p>\n\n\n\n<p>php<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;div class=\"field\"&gt;\n    &lt;?php _e('stock status', 'usces'); ?&gt; : &lt;?php usces_the_itemZaiko(); ?&gt;\n    \n    &lt;?php \n    $zaiko_num = usces_the_itemZaikoNum('return');\n    <em>\/\/ \u5024\u304c\u7a7a\u3067\u306a\u304f\u3001\u304b\u3064 0 \u4ee5\u4e0a\u306e\u6570\u5024\uff08\u307e\u305f\u306f\u6570\u5024\u6587\u5b57\u5217\uff09\u3067\u3042\u308b\u304b\u3092\u78ba\u8a8d<\/em>\n    if ( !empty($zaiko_num) || '0' === $zaiko_num ) : \n    ?&gt;\n        \uff08\u5728\u5eab\u6570\uff1a&lt;?php echo esc_html($zaiko_num); ?&gt;\uff09\n    &lt;?php endif; ?&gt;\n&lt;\/div&gt;<\/code><\/pre>\n<div class=\"otQkpb\" role=\"heading\" aria-level=\"3\" data-animation-nesting=\"\" data-sfc-cp=\"\" data-complete=\"true\" data-processed=\"true\" data-sae=\"\">\u4fee\u6b63\u306e\u30dd\u30a4\u30f3\u30c8<\/div>\n<ol class=\"IaGLZe VimKh\" data-processed=\"true\" data-complete=\"true\">\n<li data-hveid=\"CAEIBhAA\" data-complete=\"true\" data-sae=\"\"><span class=\"T286Pc\" data-sfc-cp=\"\" data-complete=\"true\"><strong class=\"Yjhzub\" data-complete=\"true\">\u95a2\u6570\u306e\u623b\u308a\u5024\u3092\u5909\u6570\u306b\u4ee3\u5165<\/strong>:<br data-serialized-params=\"[]\" data-complete=\"true\" \/><code class=\"o8j0Mc\" dir=\"ltr\" data-complete=\"true\" data-sae=\"\">usces_the_itemZaikoNum('return')<\/code>\u00a0\u3092\u8907\u6570\u56de\u547c\u3073\u51fa\u3059\u306e\u3092\u907f\u3051\u3001\u4e00\u5ea6\u5909\u6570\u00a0<code class=\"o8j0Mc\" dir=\"ltr\" data-complete=\"true\" data-sae=\"\">$zaiko_num<\/code>\u00a0\u306b\u683c\u7d0d\u3059\u308b\u3053\u3068\u3067\u51e6\u7406\u3092\u52b9\u7387\u5316\u3057\u3001\u4e88\u671f\u305b\u306c\u52d5\u4f5c\u3092\u9632\u304e\u307e\u3059\u3002<\/span><\/li>\n<li data-hveid=\"CAEIBhAB\" data-complete=\"true\" data-sae=\"\"><span class=\"T286Pc\" data-sfc-cp=\"\" data-complete=\"true\"><strong class=\"Yjhzub\" data-complete=\"true\"><code class=\"o8j0Mc\" dir=\"ltr\" data-complete=\"true\" data-sae=\"\">empty()<\/code>\u00a0\u3068\u53b3\u5bc6\u6bd4\u8f03\u306e\u4f75\u7528<\/strong>:<br data-serialized-params=\"[]\" data-complete=\"true\" \/>PHP 8.0\u4ee5\u964d\u3001\u6570\u5024\u3068\u6587\u5b57\u5217\u306e\u6bd4\u8f03\u4ed5\u69d8\u304c\u5909\u66f4\u3055\u308c\u307e\u3057\u305f\u3002<code class=\"o8j0Mc\" dir=\"ltr\" data-complete=\"true\" data-sae=\"\">'' != $value<\/code>\u00a0\u3068\u3044\u3046\u66f8\u304d\u65b9\u306f\u3001<code class=\"o8j0Mc\" dir=\"ltr\" data-complete=\"true\" data-sae=\"\">$value<\/code>\u00a0\u304c\u00a0<code class=\"o8j0Mc\" dir=\"ltr\" data-complete=\"true\" data-sae=\"\">0<\/code>\u00a0\u306e\u5834\u5408\u306b\u610f\u56f3\u3057\u306a\u3044\u5224\u5b9a\uff08false\uff09\u306b\u306a\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002<code class=\"o8j0Mc\" dir=\"ltr\" data-complete=\"true\" data-sae=\"\">!empty()<\/code>\u00a0\u307e\u305f\u306f\u00a0<code class=\"o8j0Mc\" dir=\"ltr\" data-complete=\"true\" data-sae=\"\">strlen()<\/code>\u00a0\u3092\u4f7f\u7528\u3057\u3001\u300c\u5728\u5eab\u6570\u304c 0\u300d\u306e\u5834\u5408\u3082\u6b63\u3057\u304f\u8868\u793a\u3055\u308c\u308b\u3088\u3046\u00a0<code class=\"o8j0Mc\" dir=\"ltr\" data-complete=\"true\" data-sae=\"\">'0' === $zaiko_num<\/code>\u00a0\u3092\u8003\u616e\u3059\u308b\u306e\u304c\u5b89\u5168\u3067\u3059\u3002<\/span><\/li>\n<li data-hveid=\"CAEIBhAC\" data-complete=\"true\" data-sae=\"\"><span class=\"T286Pc\" data-sfc-cp=\"\" data-complete=\"true\"><strong class=\"Yjhzub\" data-complete=\"true\">\u30a8\u30b9\u30b1\u30fc\u30d7\u51e6\u7406\u306e\u8ffd\u52a0<\/strong>:<br data-serialized-params=\"[]\" data-complete=\"true\" \/>\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\uff08XSS\u5bfe\u7b56\uff09\u306e\u305f\u3081\u3001\u5024\u3092\u8868\u793a\u3059\u308b\u969b\u306f\u00a0<code class=\"o8j0Mc\" dir=\"ltr\" data-complete=\"true\" data-sae=\"\">esc_html()<\/code> \u3067\u30e9\u30c3\u30d7\u3059\u308b\u3053\u3068\u3092\u63a8\u5968\u3057\u307e\u3059\u3002<\/span><\/li>\n<\/ol>\n<div class=\"otQkpb\" role=\"heading\" aria-level=\"3\" data-animation-nesting=\"\" data-sfc-cp=\"\" data-processed=\"true\" data-sae=\"\" data-complete=\"true\">\u6ce8\u610f\u70b9<br \/>\u3082\u3057 Welcart \u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u304c\u6975\u7aef\u306b\u53e4\u3044\u5834\u5408\u3001PHP 8.x \u81ea\u4f53\u306b\u5bfe\u5fdc\u3057\u3066\u3044\u306a\u3044\u7b87\u6240\u304c\u3042\u308b\u305f\u3081\u3001<span class=\"T286Pc\" data-sfc-cp=\"\" data-complete=\"true\" data-processed=\"true\">Welcart \u516c\u5f0f\u30b5\u30a4\u30c8<\/span>\u304b\u3089\u6700\u65b0\u7248\u3078\u306e\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3082\u691c\u8a0e\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/div>\n\n\n","protected":false},"excerpt":{"rendered":"<p>\u73fe\u5728\u3001\u91c8\u8fe6\u5802\u30cd\u30c3\u30c8\u30b7\u30e7\u30c3\u30d7\u306e\u904b\u55b6\u3067\u4f7f\u7528\u3057\u3066\u304a\u308a\u307e\u3059\u30bd\u30d5\u30c8\u306f\u3001WordPress\u3068\u547c\u3070\u308c\u308bCMS\uff08\u30b3\u30f3\u30c6\u30f3\u30c4\u30fb\u30de\u30cd\u30fc\u30b8\u30fb\u30b7\u30b9\u30c6\u30e0\u306e\u7565\uff09\u306b\u3001Welcart\u3068\u8a00\u3046\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u7d44\u307f\u5408\u308f\u305b\u3066\u304a\u308a\u307e\u3059\u3002 \u305d\u306eWordPress\u306f\u3001P &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/blog.shakado.jp\/tenshu\/2026\/01\/archives\/3032.html\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;Google\u306eAI\u30e2\u30fc\u30c9\u306e\u51c4\u3055\u5b9f\u611f&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6,4],"tags":[107,106,108],"class_list":["post-3032","post","type-post","status-publish","format-standard","hentry","category-pc-relations","category-shakado-netshop","tag-php8-0","tag-welcart","tag-108"],"_links":{"self":[{"href":"https:\/\/blog.shakado.jp\/tenshu\/wp-json\/wp\/v2\/posts\/3032","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.shakado.jp\/tenshu\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.shakado.jp\/tenshu\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.shakado.jp\/tenshu\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.shakado.jp\/tenshu\/wp-json\/wp\/v2\/comments?post=3032"}],"version-history":[{"count":2,"href":"https:\/\/blog.shakado.jp\/tenshu\/wp-json\/wp\/v2\/posts\/3032\/revisions"}],"predecessor-version":[{"id":3036,"href":"https:\/\/blog.shakado.jp\/tenshu\/wp-json\/wp\/v2\/posts\/3032\/revisions\/3036"}],"wp:attachment":[{"href":"https:\/\/blog.shakado.jp\/tenshu\/wp-json\/wp\/v2\/media?parent=3032"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.shakado.jp\/tenshu\/wp-json\/wp\/v2\/categories?post=3032"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.shakado.jp\/tenshu\/wp-json\/wp\/v2\/tags?post=3032"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}