WP Content

  • Business
  • Community
  • Development
  • Plugins
  • Security
  • Tutorials
  • Login
Trending now

How to Build a WordPress Multi-Step Registration Form

WordPress Redirect After Login, Logout and Signup

WordPress 7.2 Release Candidate 5

Changes to block integration hook timing in WooCommerce 11.4

How to Add Passkey Login to WordPress (Without Locking Yourself Out)

WordPress Now Powers Only One in Five New Websites as React and Next.js Builds Surge

Testing popular plugins against new versions of WordPress

5 months of unit test speed improvements

WP-CLI’s First Major Version Since 2018 Adds Commands for Abilities, AI, and Blocks

Security fix for Square for WooCommerce: update to 5.5.4 or 5.4.4

Transpiling PHP code from 8.0 to 7.x via Rector blog.logrocket.com

2
Leonardo Losoviz 6 years ago in Development 0

There is no need to wait for WordPress to bump its minimum PHP version to start using features from PHP 7.4 and 8.0 for our themes and plugins.

There is a tool for PHP, called Rector, which enables to transpile PHP code, similar to how Babel compiles JS to make it compatible with older browsers.

So we can use modern features (such as union types, typed properties, and arrow functions), and deploy it to PHP 7.1.

This article introduces the topic of transpiling in PHP.

  • Facebook
  • Twitter
  • Pinterest
voters
  • Leonardo Losoviz
  • Jun-E Tan
Report Article

Related Articles

  1. WordPress 7.2 Release Candidate 5
  2. Changes to block integration hook timing in WooCommerce 11.4

Recent

  • WordPress 7.2 Release Candidate 5

    WordPress 7.2 Release Candidate 5 make.wordpress.org

  • How to Build a WordPress Multi-Step Registration Form

    How to Build a WordPress Multi-Step Registration Form wpusermanager.com

  • WordPress Redirect After Login, Logout and Signup

    WordPress Redirect After Login, Logout and Signup wpusermanager.com

  • Changes to block integration hook timing in WooCommerce 11.4

    Changes to block integration hook timing in WooCommerce 11.4 developer.woocommerce.com

  • How to Add Passkey Login to WordPress (Without Locking Yourself Out)

    How to Add Passkey Login to WordPress (Without Locking Yourself... wpmayor.com

Recent Comments

  • Kishor on Krom Automation Pro: Visual WordPress Workflow Automation Without Monthly Fees
  • Sanjay Joshi on How to Remove WordPress Sidebar On Any Website In a Minute – UnlimitedWP
  • ShadRabbir on How to Migrate Your WordPress Site to Another Host Without Losing Any Data
  • YayCommerce on How to Migrate Your WordPress Site to Another Host Without Losing Any Data
  • Golam Mostafa on How to Offload Your Media Files in WordPress

✉️ Get the most popular articles in your inbox every week!

WP Content

WordPress news and articles from the WordPress community.

Proudly powered by WordPress.
Hosted with SpinupWP.

Discover
  • Business
  • Community
  • Development
  • Editorials
  • Plugins
  • Security
  • Tutorials
WP Content
  • Submit Article
  • Recent Articles
  • Newsletter
  • RSS Feed
  • About
  • Contact
Projects
  • FlipWP
  • Intagrate
  • WP User Manager

© 2026 WP Content. All rights reserved.
  • Terms
  • Privacy
Login Register

Login

Login with Facebook Login with Twitter Lost Password

Register

Login with Facebook Login with Twitter Lost Password