{"id":13963919,"date":"2023-07-13T07:20:32","date_gmt":"2023-07-13T07:20:32","guid":{"rendered":"https:\/\/wpml.org\/?p=13963919"},"modified":"2023-07-13T07:20:35","modified_gmt":"2023-07-13T07:20:35","slug":"wordpress-and-wpml-php-upgrade","status":"publish","type":"post","link":"https:\/\/wpml.org\/zh-hans\/announcements\/2023\/07\/wordpress-and-wpml-php-upgrade\/","title":{"rendered":"WordPress and WPML Update Minimal Requirements to PHP 7+"},"content":{"rendered":"\n<p class=\"lead\">WordPress 6.3 will drop support for PHP 5.6 in favor of PHP 7 and newer versions. We&#8217;re doing the same for the next WPML release and it will allow us to further optimize WPML on many levels.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">The Importance of PHP Requirement Update<\/h2>\n\n\n\n<p>WordPress 6.3, the next major version, is scheduled for 2023 \u5e74 8 \u6708 8 \u65e5. The decision to drop support for PHP 5 in this version is a welcome update for the whole community. It&#8217;s great because it will allow WordPress itself and theme and plugin developers to provide improvements across the board.&nbsp;<\/p>\n\n\n\n<p>Naturally, we will do the same PHP requirements upgrade for the next WPML release. It&#8217;s planned for a release a few days before WordPress 6.3 which means it will be a seamless match.<\/p>\n\n\n\n<p>The shift from PHP 5.6 to PHP 7 brings improved performance, better memory management, and enhanced security. We&#8217;re excited about the ways this will allow us to deliver greater performance and stability to your multilingual sites.<\/p>\n\n\n\n<p>In our latest release <a href=\"https:\/\/wpml.org\/zh-hans\/changelog\/2023\/06\/wpml-4-6-4-wcml-5-2-0-elevated-user-experience-and-performance\/\">WPML 4.6.4<\/a>, we also added full PHP 8 support for even better performance.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What This Update Means for You<\/h2>\n\n\n\n<div class=\"wp-block-toolset-blocks-container tb-container\" data-toolset-blocks-container=\"44ef03618ec65729feb7d0566358a8b8\">\n<p class=\"tb-heading\" data-toolset-blocks-heading=\"b09796d750527ad36b4e33acb19864d5\" data-last-update=\"1.4\">If your site is already running on PHP 7 or newer, you&#8217;re all set and don&#8217;t need to do anything.<\/p>\n<\/div>\n\n\n\n<p>If you&#8217;re still running PHP 5.6 you should upgrade to PHP 7 or newer as soon as possible.&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">How to Check Your PHP Version<\/h3>\n\n\n\n<p>Not sure what PHP version your site is running? You can check by using the <strong>Site Health<\/strong> feature in WordPress.&nbsp;<\/p>\n\n\n\n<p>In your WordPress admin go to <strong>Tools<\/strong> \u2192 <strong>Site Health<\/strong> and click the <strong>Info<\/strong> tab. There, under the <strong>Server<\/strong> section, you will find your PHP version.<\/p>\n\n\n\n<figure class=\"wp-block-image tb-image tb-image-dynamic tb-image-frame-none\" data-toolset-blocks-image=\"0e96aa8921f1e883c080bc66ad9d1553\"><a href=\"https:\/\/wpml.org\/wp-content\/uploads\/2023\/07\/wordpress-site-health-info-server-php-version.png\"><img decoding=\"async\" width=\"1380\" height=\"1000\" loading=\"lazy\" src=\"https:\/\/wpml.org\/wp-content\/uploads\/2023\/07\/wordpress-site-health-info-server-php-version.png\" alt=\"\" class=\"wp-image-13963925\" srcset=\"https:\/\/wpml.org\/wp-content\/uploads\/2023\/07\/wordpress-site-health-info-server-php-version.png 1380w, https:\/\/wpml.org\/wp-content\/uploads\/2023\/07\/wordpress-site-health-info-server-php-version-300x217.png 300w, https:\/\/wpml.org\/wp-content\/uploads\/2023\/07\/wordpress-site-health-info-server-php-version-1024x742.png 1024w, https:\/\/wpml.org\/wp-content\/uploads\/2023\/07\/wordpress-site-health-info-server-php-version-150x109.png 150w, https:\/\/wpml.org\/wp-content\/uploads\/2023\/07\/wordpress-site-health-info-server-php-version-768x557.png 768w\" sizes=\"auto, (max-width: 1380px) 100vw, 1380px\" \/><\/a><figcaption><div class=\"tb-image-caption\">Checking your PHP version by using the WordPress Site Health tool<\/div><\/figcaption><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">How to Upgrade Your PHP Version<\/h3>\n\n\n\n<p>The process of upgrading your PHP version is usually handled by your web hosting provider. We recommend contacting them and asking them to do this change for you.<\/p>\n\n\n\n<p>Alternatively, many hosting providers also offer an easy way to upgrade your PHP version directly from your hosting control panel.&nbsp;<\/p>\n\n\n\n<p>The following image shows an example of doing this in cPanel using the MultiPHP Manager page.<\/p>\n\n\n\n<figure class=\"wp-block-image tb-image tb-image-dynamic tb-image-frame-none\" data-toolset-blocks-image=\"dbc1c001093e1521468c6ff9c2609ee4\"><a href=\"https:\/\/wpml.org\/wp-content\/uploads\/2023\/07\/wpml-cpanel-change-php-version.png\"><img decoding=\"async\" width=\"1705\" height=\"750\" loading=\"lazy\" src=\"https:\/\/wpml.org\/wp-content\/uploads\/2023\/07\/wpml-cpanel-change-php-version.png\" alt=\"\" class=\"wp-image-13963949\" srcset=\"https:\/\/wpml.org\/wp-content\/uploads\/2023\/07\/wpml-cpanel-change-php-version.png 1705w, https:\/\/wpml.org\/wp-content\/uploads\/2023\/07\/wpml-cpanel-change-php-version-300x132.png 300w, https:\/\/wpml.org\/wp-content\/uploads\/2023\/07\/wpml-cpanel-change-php-version-1024x450.png 1024w, https:\/\/wpml.org\/wp-content\/uploads\/2023\/07\/wpml-cpanel-change-php-version-150x66.png 150w, https:\/\/wpml.org\/wp-content\/uploads\/2023\/07\/wpml-cpanel-change-php-version-768x338.png 768w, https:\/\/wpml.org\/wp-content\/uploads\/2023\/07\/wpml-cpanel-change-php-version-1536x676.png 1536w\" sizes=\"auto, (max-width: 1705px) 100vw, 1705px\" \/><\/a><figcaption><div class=\"tb-image-caption\">Changing the PHP version using cPanel<\/div><\/figcaption><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">What if You Cannot Upgrade Just Yet<\/h2>\n\n\n\n<p>We understand that some of our clients might not be able to upgrade their PHP version for different reasons. If that\u2019s the case for your site, don&#8217;t worry!&nbsp;<\/p>\n\n\n\n<p>If for some reason migration is not feasible right now, you can continue using WordPress 6.2.2 and WPML 4.6.4. Both are great, stable versions fully compatible with PHP 5.6.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Feedback? Comments?<\/h2>\n\n\n\n<p>We&#8217;re excited about these changes and look forward to offering you an even better WPML experience.<\/p>\n\n\n\n<p>What&#8217;s your take on this? Which PHP version is your site running? Let us know in the comments!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>WordPress 6.3 will drop support for PHP 5.6 in favor of [&hellip;]<\/p>\n","protected":false},"author":76577,"featured_media":13967769,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"ep_exclude_from_search":false,"footnotes":""},"categories":[3],"tags":[],"class_list":["post-13963919","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-announcements"],"_links":{"self":[{"href":"https:\/\/wpml.org\/zh-hans\/wp-json\/wp\/v2\/posts\/13963919","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wpml.org\/zh-hans\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wpml.org\/zh-hans\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wpml.org\/zh-hans\/wp-json\/wp\/v2\/users\/76577"}],"replies":[{"embeddable":true,"href":"https:\/\/wpml.org\/zh-hans\/wp-json\/wp\/v2\/comments?post=13963919"}],"version-history":[{"count":8,"href":"https:\/\/wpml.org\/zh-hans\/wp-json\/wp\/v2\/posts\/13963919\/revisions"}],"predecessor-version":[{"id":13967763,"href":"https:\/\/wpml.org\/zh-hans\/wp-json\/wp\/v2\/posts\/13963919\/revisions\/13967763"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/wpml.org\/zh-hans\/wp-json\/wp\/v2\/media\/13967769"}],"wp:attachment":[{"href":"https:\/\/wpml.org\/zh-hans\/wp-json\/wp\/v2\/media?parent=13963919"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wpml.org\/zh-hans\/wp-json\/wp\/v2\/categories?post=13963919"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wpml.org\/zh-hans\/wp-json\/wp\/v2\/tags?post=13963919"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}