{"id":9384,"date":"2025-06-02T15:57:44","date_gmt":"2025-06-02T06:57:44","guid":{"rendered":"https:\/\/www.prime-strategy.co.jp\/column\/?p=9384"},"modified":"2026-02-17T01:11:25","modified_gmt":"2026-02-16T16:11:25","slug":"%e8%87%aa%e5%8b%95%e3%82%a2%e3%83%83%e3%83%97%e3%83%87%e3%83%bc%e3%83%88%e3%82%92%e3%81%99%e3%82%8bwordpress%e3%81%ae%e4%bb%95%e7%b5%84%e3%81%bf%e5%9f%ba%e7%a4%8e%e7%b7%a8","status":"publish","type":"post","link":"https:\/\/kusanagi.tokyo\/column\/archives\/column_9384","title":{"rendered":"\u81ea\u52d5\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3092\u3059\u308bWordPress\u306e\u4ed5\u7d44\u307f(\u57fa\u790e\u7de8)"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">\u81ea\u52d5\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u306fWordPress\u3060\u3068\u3001\u3069\u306e\u3088\u3046\u306b\u884c\u308f\u308c\u3066\u3044\u308b\u304b\u3002\u3053\u308c\u306fwp-cron\u3068\u3044\u3046\u30b7\u30b9\u30c6\u30e0\u3092\u5229\u7528\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u306a\u304a\u3001\u4ed5\u7d44\u307f\u306f\u3053\u3061\u3089\u3067\u89e3\u8aac\u3057\u307e\u3059\u304c\u3001\u81ea\u52d5\u66f4\u65b0\u306e\u8a2d\u5b9a\u65b9\u6cd5\u306a\u3069\u306e\u5b9f\u7528\u7684\u306a\u9762\u306b\u3064\u3044\u3066\u306f<a href=\"https:\/\/www.prime-strategy.co.jp\/column\/archives\/column_9215\">\u5f0a\u793e\u306e\u738b\u304c\u66f8\u3044\u305f\u8a18\u4e8b\u300cWordPress\u306e\u30c6\u30fc\u30de\u30fb\u30d7\u30e9\u30b0\u30a4\u30f3\u306e\u81ea\u52d5\u66f4\u65b0\u306f\u6709\u52b9\u3067\u3059\u304b\u300d<\/a>\u3082\u3054\u53c2\u7167\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"wp-cron%E3%81%A8%E3%81%AF\"><\/span>wp-cron\u3068\u306f?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">wp-cron\u306fWeb\u30d9\u30fc\u30b9\u306ecron\u30b7\u30b9\u30c6\u30e0\u3067\u3059\u3002\u7279\u5225\u306a\u8a2d\u5b9a\u3092\u3057\u306a\u3044\u9650\u308a\u306f\u3001\u30b5\u30a4\u30c8\u306b\u30a2\u30af\u30bb\u30b9\u304c\u3042\u308b\u306a\u3069\u3001WordPress\u306e\u30b7\u30b9\u30c6\u30e0\u3068\u95a2\u4e0e\u304c\u3042\u308b\u3053\u3068\u304c\u884c\u308f\u308c\u308b\u3068\u547c\u3073\u51fa\u3057\u3055\u308c\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E8%87%AA%E5%8B%95%E3%82%A2%E3%83%83%E3%83%97%E3%83%87%E3%83%BC%E3%83%88%E3%81%A8cron%E3%81%AE%E9%96%A2%E3%82%8F%E3%82%8A\"><\/span>\u81ea\u52d5\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3068cron\u306e\u95a2\u308f\u308a<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u3055\u3066\u3001wp-cron\u306f\u3069\u306e\u3088\u3046\u306b\u3057\u3066\u81ea\u52d5\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3092\u5b9f\u884c\u3059\u308b\u306e\u3067\u3057\u3087\u3046\u304b\u3002\u3053\u308c\u3092\u898b\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u307e\u305a\u306f\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044(WP-CLI\u304c\u5fc5\u8981\u3067\u3059)\u3002\u306a\u304a\u3001<code>wp<\/code>\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u969b\u306f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u30eb\u30fc\u30c8(\/home\/kusanagi\/(\u30d7\u30ed\u30d5\u30a1\u30a4\u30eb\u540d)\/DocumentRoot)\u3067\u5b9f\u884c\u3059\u308b\u304b\u3001\u3042\u308b\u3044\u306f(<code>wp<\/code>\u30b3\u30de\u30f3\u30c9\u5b9f\u884c\u6642\u306b<code>--path=(\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u30eb\u30fc\u30c8\u3078\u306e\u30d1\u30b9<\/code>)\u3092\u6307\u5b9a\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">wp cron event list<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u7d50\u679c\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u611f\u3058\u306b\u306a\u308b\u306f\u305a\u3067\u3059(\u4e00\u90e8\u7701\u7565\u3057\u3066\u3044\u307e\u3059)\u3002\u3053\u308c\u306f\u3001wp-cron\u306b\u767b\u9332\u3055\u308c\u3066\u3044\u308b\u30a4\u30d9\u30f3\u30c8\u306e\u30ea\u30b9\u30c8\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">+--------------------+--------------------+-----------------------+------------+<br>| hook               | next_run_gmt       | next_run_relative     | recurrence |<br>+--------------------+--------------------+-----------------------+------------+<br>| wp_version_check   | 2025-04-15 00:54:2 | now                   | 12 hours   |<br>|                    | 2                  |                       |            |<br>+--------------------+--------------------+-----------------------+------------+<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u81ea\u52d5\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u306b\u306f\u3001\u3053\u3053\u306b\u3042\u308b\u3001<code>wp_version_check<\/code>\u304c\u95a2\u4fc2\u3057\u3066\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E8%87%AA%E5%8B%95%E3%82%A2%E3%83%83%E3%83%97%E3%83%87%E3%83%BC%E3%83%88%E3%81%AE%E5%AE%9F%E6%85%8B\"><\/span>\u81ea\u52d5\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u306e\u5b9f\u614b<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u3055\u3066\u3001\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3092\u5b9f\u884c\u3059\u308b\u305d\u306e\u5b9f\u614b\u3067\u3042\u308b<code>wo_version_check<\/code>\u306e\u95a2\u6570\u306b\u5230\u9054\u3057\u307e\u3057\u305f\u3002\u3053\u308c\u306f\u3069\u3053\u306b\u3042\u308b\u306e\u304b\u3068\u3044\u3046\u3068\u3001\u5148\u307b\u3069\u958b\u3044\u305f<a href=\"https:\/\/developer.wordpress.org\/reference\/files\/wp-includes\/update.php\/\">wp-includes\/update.php<\/a>\u306b\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u307e\u305a\u3001WordPress.org\u306eAPI\u306b\u5bfe\u3057\u3066\u30b5\u30fc\u30d0\u306e\u4ed5\u69d8(\u30d0\u30fc\u30b8\u30e7\u30f3)\u306a\u3069\u3092\u9001\u4ed8\u3057\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u3063\u3066\u3001\u4e92\u63db\u6027\u304c\u3042\u308b\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u304c\u3042\u308b\u304b\u3069\u3046\u304b\u3092\u30c1\u30a7\u30c3\u30af\u3057\u3066\u3044\u307e\u3059\u3002\u307e\u305f\u3001\u305d\u306e\u3064\u3044\u3067\u306b\u3067\u3059\u304c\u3001\u3053\u3053\u3067wp-cron\u7d4c\u7531\u3067\u5b9f\u884c\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u3092\u691c\u77e5\u3059\u308b\u3068\u3001\u81ea\u52d5\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u306e\u95a2\u6570\u3092\u5b9f\u884c\u3059\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">\/\/ Trigger background updates if running non-interactively, and we weren't called from the update handler.<br>if ( $doing_cron &amp;&amp; ! doing_action( 'wp_maybe_auto_update' ) ) {<br>    \/**<br>     * Fires during wp_cron, starting the auto-update process.<br>     *<br>     * @since 3.9.0<br>     *\/<br>    do_action( 'wp_maybe_auto_update' );<br>}<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E8%87%AA%E5%8B%95%E3%82%A2%E3%83%83%E3%83%97%E3%83%87%E3%83%BC%E3%83%88%E3%81%AE%E5%AE%9F%E8%A1%8C\"><\/span>\u81ea\u52d5\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u306e\u5b9f\u884c<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<pre class=\"wp-block-preformatted\">\/**<br> * Performs WordPress automatic background updates.<br> *<br> * Updates WordPress core plus any plugins and themes that have automatic updates enabled.<br> *<br> * @since 3.7.0<br> *\/<br>function wp_maybe_auto_update() {<br>    require_once ABSPATH . 'wp-admin\/includes\/admin.php';<br>    require_once ABSPATH . 'wp-admin\/includes\/class-wp-upgrader.php';<br><br>    $upgrader = new WP_Automatic_Updater();<br>    $upgrader-&gt;run();<br>}<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u306e\u95a2\u6570\u3067\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c0\u30fc\u3092\u8d77\u52d5\u3057\u307e\u3059\u3002\u3053\u306e\u4e2d\u3067\u3001\u30b3\u30a2\u306e\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u3084\u30c6\u30fc\u30de\u30fb\u30d7\u30e9\u30b0\u30a4\u30f3\u306e\u81ea\u52d5\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u306e\u51e6\u7406\u304c\u5206\u304b\u308c\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u3053\u307e\u3067\u306f\u30b3\u30a2\u30fb\u30c6\u30fc\u30de\u30fb\u30d7\u30e9\u30b0\u30a4\u30f3\u5171\u901a\u306e\u52d5\u4f5c\u3092\u3057\u3066\u3044\u307e\u3057\u305f\u3002\u3057\u304b\u3057\u3001\u3053\u3053\u304b\u3089\u5148\u306f\u5206\u304b\u308c\u3066\u3044\u304d\u307e\u3059\u3002\u5927\u304d\u306a\u70b9\u306f\u3001\u6709\u52b9\u306a\u30d7\u30e9\u30b0\u30a4\u30f3\u306e\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u306b\u306f\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u5f8c\u306e\u30ed\u30fc\u30eb\u30d0\u30c3\u30af\u30c6\u30b9\u30c8\u304c\u8ffd\u52a0\u3055\u308c\u3001PHP\u3067\u91cd\u5927\u306a\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3059\u308b\u3068\u65e7\u30d0\u30fc\u30b8\u30e7\u30f3\u306b\u623b\u308b\u6a5f\u80fd\u304c\u5b9f\u88c5\u3055\u308c\u3066\u3044\u308b\u3001\u3068\u3044\u3046\u3053\u3068\u3067\u3059\u3002\u4ed6\u3067\u306f\u3053\u308c\u306f\u767a\u751f\u3057\u307e\u305b\u3093\u3002\u307e\u305f\u3001\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c0\u30fc\u306e\u30af\u30e9\u30b9\u3082\u500b\u5225\u306b\u7528\u610f\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u308c\u3089\u306b\u3064\u3044\u3066\u306f\u6b21\u56de\u89e3\u8aac\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u81ea\u52d5\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u306fWordPress\u3060\u3068\u3001\u3069\u306e\u3088\u3046\u306b\u884c\u308f\u308c\u3066\u3044\u308b\u304b\u3002\u3053\u308c\u306fwp-cron\u3068\u3044\u3046\u30b7\u30b9\u30c6\u30e0\u3092\u5229\u7528\u3057\u3066\u3044\u307e\u3059\u3002 \u306a\u304a\u3001\u4ed5\u7d44\u307f\u306f\u3053\u3061 ... <a title=\"\u81ea\u52d5\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3092\u3059\u308bWordPress\u306e\u4ed5\u7d44\u307f(\u57fa\u790e\u7de8)\" class=\"read-more\" href=\"https:\/\/kusanagi.tokyo\/column\/archives\/column_9384\" aria-label=\"\u81ea\u52d5\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3092\u3059\u308bWordPress\u306e\u4ed5\u7d44\u307f(\u57fa\u790e\u7de8) \u306b\u3064\u3044\u3066\u3055\u3089\u306b\u8aad\u3080\">Read more<\/a><\/p>\n","protected":false},"author":30,"featured_media":9393,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"content-type":"","footnotes":""},"categories":[21],"tags":[107],"series":[67],"journey":[97],"product":[105],"class_list":["post-9384","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-wordpress","tag-security","series-engineer-blog","journey-start","product-kusanagi","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-33","no-featured-image-padding"],"_links":{"self":[{"href":"https:\/\/kusanagi.tokyo\/column\/wp-json\/wp\/v2\/posts\/9384","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kusanagi.tokyo\/column\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kusanagi.tokyo\/column\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kusanagi.tokyo\/column\/wp-json\/wp\/v2\/users\/30"}],"replies":[{"embeddable":true,"href":"https:\/\/kusanagi.tokyo\/column\/wp-json\/wp\/v2\/comments?post=9384"}],"version-history":[{"count":15,"href":"https:\/\/kusanagi.tokyo\/column\/wp-json\/wp\/v2\/posts\/9384\/revisions"}],"predecessor-version":[{"id":9617,"href":"https:\/\/kusanagi.tokyo\/column\/wp-json\/wp\/v2\/posts\/9384\/revisions\/9617"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/kusanagi.tokyo\/column\/wp-json\/wp\/v2\/media\/9393"}],"wp:attachment":[{"href":"https:\/\/kusanagi.tokyo\/column\/wp-json\/wp\/v2\/media?parent=9384"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kusanagi.tokyo\/column\/wp-json\/wp\/v2\/categories?post=9384"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kusanagi.tokyo\/column\/wp-json\/wp\/v2\/tags?post=9384"},{"taxonomy":"series","embeddable":true,"href":"https:\/\/kusanagi.tokyo\/column\/wp-json\/wp\/v2\/series?post=9384"},{"taxonomy":"journey","embeddable":true,"href":"https:\/\/kusanagi.tokyo\/column\/wp-json\/wp\/v2\/journey?post=9384"},{"taxonomy":"product","embeddable":true,"href":"https:\/\/kusanagi.tokyo\/column\/wp-json\/wp\/v2\/product?post=9384"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}