WordPress 6.7 Release Candidate 2

Posted by download | Posted in Software | Posted on 29-10-2024

The second release candidate (RC2) for WordPress 6.7 is ready for download and testing!

This version of the WordPress software is under development. Please do not install, run, or test this version of WordPress on production or mission-critical websites. Instead, it’s recommended that you evaluate RC2 on a test server and site.

Reaching this phase of the release cycle is an important milestone. While release candidates are considered ready for release, testing remains crucial to ensure that everything in WordPress 6.7 is the best it can be.

You can test WordPress 6.7 RC2 in four ways:

PluginInstall and activate the WordPress Beta Tester plugin on a WordPress install. (Select the “Bleeding edge” channel and “Beta/RC Only” stream).
Direct DownloadDownload the RC2 version (zip) and install it on a WordPress website.
Command LineUse the following WP-CLI command:
wp core update --version=6.7-RC2
WordPress PlaygroundUse the 6.7 RC2 WordPress Playground instance (available within 35 minutes after the release is ready) to test the software directly in your browser without the need for a separate site or setup.
You can test the RC2 version in four ways.

The current target for the WordPress 6.7 release is November 12, 2024. Get an overview of the 6.7 release cycle, and check the Make WordPress Core blog for 6.7-related posts in the coming weeks for further details.

What’s in WordPress 6.7 RC2?

Get a recap of WordPress 6.7’s highlighted features in the Beta 1 announcement. For more technical information related to issues addressed since RC1, you can browse the following links:

How you can contribute

WordPress is open source software made possible by a passionate community of people collaborating on and contributing to its development. The resources below outline various ways you can help the world’s most popular open source web platform, regardless of your technical expertise.

Get involved in testing

Testing for issues is critical to ensuring WordPress is performant and stable. It’s also a meaningful way for anyone to contribute. This detailed guide will walk you through testing features in WordPress 6.7. For those new to testing, follow this general testing guide for more details on getting set up.

If you encounter an issue, please report it to the Alpha/Beta area of the support forums or directly to WordPress Trac if you are comfortable writing a reproducible bug report. You can also check your issue against a list of known bugs.

Curious about testing releases in general? Follow along with the testing initiatives in Make Core and join the #core-test channel on Making WordPress Slack.

Search for vulnerabilities

From now until the final release of WordPress 6.7 (scheduled for November 12, 2024), the monetary reward for reporting new, unreleased security vulnerabilities is doubled. Please follow responsible disclosure practices as detailed in the project’s security practices and policies outlined on the HackerOne page and in the security white paper.

Update your theme or plugin

For plugin and theme authors, your products play an integral role in extending the functionality and value of WordPress for all users. 

Thanks for continuing to test your themes and plugins with the WordPress 6.7 beta releases. With RC2, you’ll want to conclude your testing and update the “Tested up to” version in your plugin’s readme file to 6.7.

If you find compatibility issues, please post detailed information to the support forum.

Help translate WordPress

Do you speak a language other than English? ¿Español? Français? Русский? 日本? हिन्दी? বাংলা? You can help translate WordPress into more than 100 languages.

Release the haiku

Six point seven’s dawn,
RC2 sweeps bugs away,
Sites stand firm and strong.

Thank you to the following contributors for collaborating on this post: @jorbin.

WordPress Community Creates 1,000 Block Themes in 1,000 Days

Posted by download | Posted in Software | Posted on 23-10-2024

Layout of numerous colorful images of block themes laid out in a grid.

In nearly 1,000 days, the WordPress community has created 1,000 Block themes—coming together to use the full potential of the Site Editor and unleash new creative possibilities for everyone.

First introduced in WordPress 5.9, Block themes have steadily evolved, improving flexibility and functionality for themers, users, and agencies alike. Now, design tools allow customizing almost every detail. With style variations, users can change the overall look of their site in a few clicks. You can even use curation options to customize the editing process itself. But we’re not done! We can’t wait to keep pushing Block themes even further. Thank you to every early adopter who, by embracing early features with passion, helped shape the Block themes we love today with feedback and testing.

If you haven’t yet explored Block themes, check out some of the resources below to get inspired:

Let’s celebrate and share our contributions! Please comment on the Theme Team’s post dedicated to highlighting this milestone to share your favorite Block theme and thank those who have contributed along the way. 

Thank you to @kristastevens for editorial help, @beafialho for the featured image, and @kafleg for reviewing.

WordPress 6.7 Release Candidate 1

Posted by download | Posted in Software | Posted on 22-10-2024

The first release candidate (RC1) for WordPress 6.7 is ready for download and testing!

This version of the WordPress software is under development. Please do not install, run, or test this version of WordPress on production or mission-critical websites. Instead, it’s recommended that you evaluate RC1 on a test server and site.

Reaching this phase of the release cycle is an important milestone. While release candidates are considered ready for release, testing remains crucial to ensure that everything in WordPress 6.7 is the best it can be.

You can test WordPress 6.7 RC1 in four ways:

PluginInstall and activate the WordPress Beta Tester plugin on a WordPress install. (Select the “Bleeding edge” channel and “Beta/RC Only” stream).
Direct DownloadDownload the RC1 version (zip) and install it on a WordPress website.
Command LineUse the following WP-CLI command:
wp core update --version=6.7-RC1
WordPress PlaygroundUse the 6.7 RC1 WordPress Playground instance (available within 35 minutes after the release is ready) to test the software directly in your browser without the need for a separate site or setup.
You can test the RC1 version in four ways.

The current target for the WordPress 6.7 release is November 12, 2024. Get an overview of the 6.7 release cycle, and check the Make WordPress Core blog for 6.7-related posts in the coming weeks for further details.

What’s in WordPress 6.7 RC1?

Get a recap of WordPress 6.7’s highlighted features in the Beta 1 announcement. For more technical information related to issues addressed since Beta 3, you can browse the following links:

Want to look deeper into the details and technical notes for this release? These recent posts cover some of the latest updates:

How you can contribute

WordPress is open source software made possible by a passionate community of people collaborating on and contributing to its development. The resources below outline various ways you can help the world’s most popular open source web platform, regardless of your technical expertise.

Get involved in testing

Testing for issues is critical to ensuring WordPress is performant and stable. It’s also a meaningful way for anyone to contribute. This detailed guide will walk you through testing features in WordPress 6.7. For those new to testing, follow this general testing guide for more details on getting set up.

If you encounter an issue, please report it to the Alpha/Beta area of the support forums or directly to WordPress Trac if you are comfortable writing a reproducible bug report. You can also check your issue against a list of known bugs.

Curious about testing releases in general? Follow along with the testing initiatives in Make Core and join the #core-test channel on Making WordPress Slack.

Search for vulnerabilities

From now until the final release of WordPress 6.7 (scheduled for November 12, 2024), the monetary reward for reporting new, unreleased security vulnerabilities is doubled. Please follow responsible disclosure practices as detailed in the project’s security practices and policies outlined on the HackerOne page and in the security white paper.

Update your theme or plugin

For plugin and theme authors, your products play an integral role in extending the functionality and value of WordPress for all users. 

Thanks for continuing to test your themes and plugins with the WordPress 6.7 beta releases. With RC1, you’ll want to conclude your testing and update the “Tested up to” version in your plugin’s readme file to 6.7.

If you find compatibility issues, please post detailed information to the support forum.

Help translate WordPress

Do you speak a language other than English? ¿Español? Français? Русский? 日本? हिन्दी? বাংলা? You can help translate WordPress into more than 100 languages. This release milestone (RC1) also marks the hard string freeze point of the 6.7 release cycle.

Release the haiku

I See An R.C.
You See A Chance For Testing
Six Seven For The Win!

Thank you to the following contributors for collaborating on this post: @atachibana, @jorbin.

Expanding Our Code of Conduct to Protect Private Conversations

Posted by download | Posted in Software | Posted on 19-10-2024

At the heart of our community is our shared pledge to create a space that is harassment-free, welcoming, and inclusive for all. Our Community Code of Conduct already outlines a clear set of expectations, while also providing examples of unacceptable actions. Today, we are reinforcing our values by adding another element to our list of unacceptable behaviors: Publishing private messages without consent.

Why This Addition Matters

The relationships we build within our community often involve private discussions. These conversations may involve sensitive matters, personal experiences, or simply casual exchanges. Regardless of the content, every individual should feel confident that their private communications will remain private unless they grant explicit permission to share them.

Sharing private messages without consent is a breach of trust that can also lead to unintended harm, including emotional distress or misrepresentation. When members of our community feel they cannot trust others in their personal conversations, it undermines the collaborative spirit that is crucial to our collective success.

How This Change Protects the Community

By explicitly addressing the publication of private messages without consent, we are reinforcing an existing unacceptable behavior in our Community Code of Conduct: Other conduct which could reasonably be considered inappropriate in a professional setting. Sharing private communications without permission is a clear violation of professional integrity.

This new addition ensures that private messages receive the same level of protection as personal information and that sensitive communications shared in confidence will not be disclosed without prior consent. An important exception to this is when sharing private messages is necessary for reporting incidents or concerns to the Incident Response Team, as part of our commitment to maintaining a safe and respectful environment.

Ultimately, this change encourages honest, constructive engagement across all levels of participation.

Moving Forward Together

The strength of our community lies in the trust we place in one another. By clarifying and reinforcing our expectations, we are taking another step toward maintaining an inclusive, respectful, and safe environment for everyone.This new addition will take effect immediately, and violations will be handled in accordance with our existing enforcement guidelines. Together, we can ensure our community remains a place of collaboration, trust, and mutual respect.

WordPress Thanks Salesforce

Posted by download | Posted in Software | Posted on 18-10-2024

In the midst of our legal battles with Silver Lake and WP Engine, I wanted to take a moment to highlight something positive.

Because of my friendships with the co-founders of Slack, Stewart Butterfield and Cal Henderson, WordPress.org has had a free version of the Pro version of Slack since they started in 2009. We switched from IRC to Slack, and it was like superpowers were unlocked for our team.

Over the past 15 years, Slack has been our secret weapon of productivity compared to many other open source projects. Its amazing collaboration features have allowed us to scale WordPress from running just a few blogs to now powering around 43% of all websites in the world, almost 10 times the runner-up in the market.

As we have scaled from very small to very large, Slack has scaled right alongside us, seemingly effortlessly. WordPress.org currently has 49,286 users on its Slack Business+ instance, which would cost at least $8.8M/yr if we were paying. (And we may need to go to their enterprise grid, to support e-discovery in the lawsuit attacks from WP Engine, which would cost even more.)

This incredible generosity was continued by the enlightened leadership of Marc Benioff at Salesforce when they bought Slack in 2020. However, it has not been widely known or recognized on our Five for the Future page, which only highlights self-reported contributor hours and doesn’t mention Salesforce at all.

This is a grave error, and we are correcting it today. Going forward:

  • I would like every business in the world to see the amazing collaboration and productivity gains Slack has enabled for our community of tens of thousands of volunteers worldwide and consider adopting it for their own business.
  • Salesforce will have a complimentary top sponsor slot at our flagship WordCamp events in the United States, Europe, and Asia, which attract thousands of people each.
  • We will update our Five for the Future program to reflect contributions such as Salesforce’s going forward.

We just want to repeat: Thank you. We hope to deepen our partnership with Salesforce in the future.

Top 4 WordPress Shortcuts to Save You Time and Boost Productivity

Posted by download | Posted in Software | Posted on 17-10-2024

While there are no shortcuts to success, there are shortcuts to a more efficient workflow. We may not think about them much, but these keyboard shortcuts have helped millions of people make their daily—even hourly—workflows faster and more efficient. 

Some of our favorite shortcuts at WordPress.com help us bypass menus, create post drafts with a single click, quickly access bulk management options, and effortlessly find useful blocks in the editor. Let’s take a look and see how you can use these same shortcuts right now.

1. Command Palette with ctrl+K (or cmd+K)

First up is the Command Palette—think of it like a Swiss Army knife for your site. 

What It Does: Instead of clicking around menus and hunting for the right setting or page, you can press ctrl+K on Windows or cmd+K on Mac to instantly open a WordPress-specific search bar. From there, you can access pages, posts, settings, and even plugins. It’s your shortcut to just about anything you need in WordPress. The Command Palette is accessible when you are logged into your site and have a Block theme activated. 

How to Use It: Press ctrl+K on Windows or cmd+K on Mac to open the command palette. Start typing what you’re looking for, like “new post” or “theme settings,” and hit enter when the option pops up. Voilà! You’re instantly taken where you need to go.

Productivity Boost: This shortcut is a lifesaver when you’re deep in your workflow and don’t want to break your concentration by clicking through menus. It’s especially useful for developers or site owners juggling multiple tasks.

Example of the Command Palette in use.

2. Quick Post Drafts from the Toolbar

If you’ve ever been struck by a brilliant idea while browsing your site, you know the frustration of having to navigate to the dashboard to jot it down. Enter the Quick Post Draft shortcut! This lets you start a new post directly from the admin toolbar without breaking your flow.

What It Does: Start drafting a post from anywhere on your WordPress site (while logged in) by clicking the “+ New” icon in the admin toolbar and selecting “New Post.” No more navigating to the dashboard, and no more interruptions.

How to Use It: While logged in, click the “+” icon in the toolbar, select “New Post,” and start typing. That’s it! You’re already in draft mode, ready to get your thoughts down. Simply save the post as a draft for later, or let those creative juices fly right then and there.

Productivity Boost: This is perfect for those moments when inspiration strikes, whether you’re looking at your homepage or checking your latest blog post. Instead of wasting time going to the dashboard and clicking through menus, you’re writing instantly.

Where to find the +New button.

3. Bulk Edit posts, pages, or products

If you’re managing a large WordPress site with a lot of content, you’re probably familiar with the hassle of updating multiple posts or products, one by one. The Bulk Edit feature can save you loads of time by letting you edit several posts, pages, or WooCommerce products all at once.

Note: In order to use the Bulk Edit feature for Posts, ensure you’re using the Classic view. Follow this support guide for more details.

What It Does: You can modify categories, tags, status, author, and more across multiple items in just a few clicks. Whether you’re managing a blog, an eCommerce store, or a portfolio, bulk editing makes site management much faster.

How to Use It: Go to the Posts, Pages, or Products section of your WordPress dashboard. 

Screenshot of the WordPress.com dashboard.

Select the items you want to update using the checkboxes on the left-hand side, choose “Bulk actions,” then select “Edit.” Clickk Apply.

Where to find Bulk Actions.

From there, you can change multiple settings at once, including categories, tags, and visibility.

Screenshot of the Bulk Edit window.

Productivity Boost: This shortcut is a game-changer for anyone managing content-heavy or product-rich sites. You can handle mass updates without touching each individual post or product, making it a must-have for developers, content managers, and site owners.

4. Use / to Search for Blocks in Gutenberg

If you’re using the Gutenberg block editor, you might have found yourself scrolling endlessly through the block library to find the exact block you need. Well, guess what? You don’t have to! The slash-command (/) lets you search for any block instantly, speeding up your workflow.

What It Does: Typing / followed by the block name (like /image or /heading) pulls up the block you need instantly and without endless scrolling.

How to Use It: While in the Gutenberg editor, type / followed by the name of the block you want to add (e.g., /image or /quote). Select the block from the dropdown, and boom, you’re good to go!

Example of the / search function in use.

Productivity Boost: This shortcut is a massive time-saver for anyone working in the block editor. Whether you’re building complex layouts or writing a blog post, it eliminates the need to manually search for blocks.

Ready to save time with keyboard shortcuts?

There you have it—four simple yet powerful shortcuts that can dramatically improve your WordPress experience. Whether you’re looking to speed up content creation, navigate more efficiently, or manage large batches of posts, these tips will help you work smarter, not harder. 

And remember, WordPress is packed with these kinds of hidden gems, so don’t hesitate to explore and find even more ways to streamline your workflow.

Time is precious—let WordPress help you make the most of it. Looking for a powerful managed WordPress host? Check out WordPress.com’s plans that offer unmatched speed, unstoppable security, and unlimited site visitors.

WordPress 6.7 Beta 3

Posted by download | Posted in Software | Posted on 15-10-2024

WordPress 6.7 Beta 3 is now ready for testing!

This beta version of the WordPress software is under development. Please do not install, run, or test this version of WordPress on production or mission-critical websites. Instead, it is recommended you evaluate Beta 3 on a test server and site.

You can test WordPress 6.7 Beta 3 in four ways:

PluginInstall and activate the WordPress Beta Tester plugin on a WordPress install. (Select the “Bleeding edge” channel and “Beta/RC Only” stream).
Direct DownloadDownload the Beta 3 version (zip) and install it on a WordPress website.
Command LineUse the following WP-CLI command:
wp core update --version=6.7-beta3
WordPress PlaygroundUse the 6.7 Beta 3 WordPress Playground instance to test the software directly in your browser without the need for a separate site or setup. 

The current target date for the final release of WordPress 6.7 is November 12, 2024. Get an overview of the 6.7 release cycle, and check the Make WordPress Core blog for 6.7-related posts in the coming weeks for more information.

Catch up on what’s new in WordPress 6.7: Read the Beta 1 and Beta 2 announcements for details and highlights.

How to test this release

Your help testing the WordPress 6.7 Beta 3 version is key to ensuring everything in the release is the best it can be. While testing the upgrade process is essential, trying out new features is equally important. This detailed guide will walk you through testing features in WordPress 6.7.

If you encounter an issue, please report it to the Alpha/Beta area of the support forums or directly to WordPress Trac if you are comfortable writing a reproducible bug report. You can also check your issue against a list of known bugs.

Curious about testing releases in general? Follow along with the testing initiatives in Make Core and join the #core-test channel on Making WordPress Slack.

Vulnerability bounty doubles during Beta/RC

Between Beta 1, released on October 1, 2024, and the final Release Candidate (RC) scheduled for November 5, 2024, the monetary reward for reporting new, unreleased security vulnerabilities is doubled. Please follow responsible disclosure practices as detailed in the project’s security practices and policies outlined on the HackerOne page and in the security white paper.

Beta 3 updates and highlights

WordPress 6.7 Beta 3 contains more than 26 Editor updates and fixes since the Beta 2 release, including 18 tickets for WordPress core.

Each beta cycle focuses on bug fixes; more are on the way with your help through testing. You can browse the technical details for all issues addressed since Beta 3 using these links:

A Beta 3 haiku

Code in motion hums,
New features bloom, bugs retreat,
6.7 calls.

Props to @joedolson and @jeffpaul for proofreading and review, and haiku from @colorful-tones.

Secure Custom Fields

Posted by download | Posted in Software | Posted on 12-10-2024

On behalf of the WordPress security team, I am announcing that we are invoking point 18 of the plugin directory guidelines and are forking Advanced Custom Fields (ACF) into a new plugin, Secure Custom Fields. SCF has been updated to remove commercial upsells and fix a security problem.

On October 3rd, the ACF team announced ACF plugin updates will come directly from their website. This was also communicated via a support notice in the WordPress.org support forum on Oct 5th.  Sites that followed the ACF team’s instructions on “How to update ACF” will continue to get updates directly from WP Engine.  On October 1st, 2024, WP Engine also deployed its own solution for updates and installations for plugins and themes across their customers’ sites in place of WordPress.org’s update service.

Sites that continue to use WordPress.org’s update service and have not chosen to switch to ACF updates from WP Engine can click to update to switch to Secure Custom Fields. Where sites have chosen to have plugin auto-updates from WordPress.org enabled, this update process will auto-switch them from Advanced Custom Fields to Secure Custom Fields.

This update is as minimal as possible to fix the security issue. Going forward, Secure Custom Fields is now a non-commercial plugin, and if any developers want to get involved in maintaining and improving it, please get in touch.

Similar situations have happened before, but not at this scale. This is a rare and unusual situation brought on by WP Engine’s legal attacks, we do not anticipate this happening for other plugins.

WP Engine has posted instructions for how to use their version of Advanced Custom Fields that uses their own update server, so you have that option, though the WordPress Security Team does not recommend it until they fix the security issues. You can uninstall Advanced Custom Fields and activate Secure Custom Fields from the plugin directory and be just fine.

There is separate, but not directly related news that Jason Bahl has left WP Engine to work for Automattic and will be making WPGraphQL a canonical community plugin. We expect others will follow as well.

Ian Stewart to Lead WordPress.com

Posted by download | Posted in Software | Posted on 11-10-2024

We are pleased to announce that Ian Stewart (blog, LinkedInGitHub, X) has been chosen to lead end-to-end customer experience for WordPress.com as its Artistic Director and product lead.

In a nod to LVMH’s organizational structure, Ian will lead in the style of a maison head, ensuring that every part of WordPress.com remains the best managed WordPress experience available. He has been a part of the WordPress.com team for over 14 years, and we’re excited to see what changes he will implement on WordPress.com in this new role.

“I got involved with WordPress after growing tired of using Blogger for my personal blog,” Ian says. “This quickly led to the demise of my regular blogging habits as I spent most of my time messing around with my theme…My fooling around with WordPress themes quickly became a delightful obsession as I tried to publicly figure out what I thought about them.”

We’re grateful for your obsession with WordPress, Ian, and we certainly know the feeling.

When he’s not wrangling WordPress themes, Ian is more than likely browsing for books, thinking about books, thinking about where to store books, and—when time permits—sometimes even reading books. He hails from infamously cold and windy Winnipeg, Canada, where he lives with his wonderful wife and children.

Please join us in welcoming Ian in his new role.

What is PHP? A Thorough Explanation for Absolute Beginners

Posted by download | Posted in Software | Posted on 11-10-2024

If you find yourself diving deeper into the topic of WordPress, content management systems, and websites, a term you will quickly stumble upon is “PHP.” You will likely hear how crucial PHP is for the Internet and that it is what’s powering WordPress websites.

However, what exactly is PHP, and why is it so important?

The short answer is that it’s a general-purpose, server-side scripting language. That said, unless you are already knowledgeable in programming and web development, that probably doesn’t make things much clearer. 

In order to help you better understand this topic, we’ll cover PHP in detail below. You’ll learn what PHP is, why it matters, and how it relates to WordPress and pretty much everything you do online. We promise you’ll be surprised to hear how much you likely rely on PHP every day.

  1. What is PHP? History, features, and benefits
    1. PHP features
    2. Benefits of PHP
  2. How PHP works: Creating dynamic web content
  3. PHP and WordPress: The CMS’ heart and soul
    1. Powering themes and plugins
    2. Without PHP, there would be no WordPress
  4. PHP in everyday life: You rely on it more often than you think
    1. Other abilities of PHP
  5. What is PHP? It is the web’s backbone

What is PHP? History, features, and benefits

The original developer of PHP was a Danish-Canadian programmer named Rasmus Lerdorf. He first created the language in the mid 1990s to build tools for his own website; that’s why PHP originally stood for “Personal Home Page.” Today, it stands for the recursive acronym “Hypertext Preprocessor” and development and support has been taken over by the PHP Group.

the PHP group homepage showing a description, two buttons, and version changelogs

PHP features

PHP has some notable features, many of which are applicable to the way WordPress works:

Open Source: The first thing that is important to note is that, like WordPress, PHP is open source. That means it does not belong to any one business entity. It also means that it’s free to download and use for any purpose.

Also like WordPress, PHP is maintained by a number of volunteers around the world. The next major release, 8.4, will be available November 21, 2024.

Finally, both WordPress and PHP are community-funded––while WordPress has the WordPress Foundation, The PHP Foundation’s mission is to “ensure the long-term prosperity of the PHP language.” Automattic is a proud Platinum Sponsor of The PHP Foundation.

Server Side: PHP is a server-side language, which means it executes on the server and not in the user’s browser.

For example, PHP’s most frequent application is for creating HTML documents for websites. Even though there are PHP files on the server, the browser does not receive the PHP code; instead, it receives the finished HTML documents for display. This is different from client-side languages like JavaScript where the processing happens directly in the user’s browser after downloading the JavaScript files.

To make things clearer, server-side languages are a bit like going to a restaurant. You send an order to the kitchen, they prepare the meal, and it arrives at your table ready to eat. Client-side languages, on the other hand, are like meal-delivery services. While they provide you with all the necessary ingredients, you still have to put them together in your own kitchen.

General Purpose: PHP is also a general-purpose programming language. You can use it for command-line scripting, creating desktop applications, and more. However, its primary application is in web development. 

Ubiquitous: According to W3Techs, the language is present on 75.7% of all websites. That includes some famous ones, as you will see below.

In addition, it forms the backbone of many content management systems like DrupalJoomla!, and—the most popular of them all—WordPress.

PHP is one of the biggest open source success stories, as much of the modern Internet depends on it to work.

Benefits of PHP

You might be asking yourself why the usage of PHP is so widespread. There are many good reasons for that, but here are just a few:

  • Beginner-Friendly: PHP is relatively easy for beginners to learn due to its intuitive syntax. There are also plenty of tools and frameworks available to make coding easier.
  • Wide Community: The language has a vast and active community of developers worldwide. This means there are loads of online resources, forums, and other places where users can seek help and find ready-made solutions to common problems.
  • Cross-Platform Compatibility: PHP is compatible with popular operating systems, including Windows, MacOS, Linux, and Unix. It also works on various web servers such as Apache, NGINX, and Microsoft IIS.
  • Database Connectivity: In addition, it works with a number of different database formats, such as MySQL, MongoDB, PostgreSQL, SQLite, Oracle, and more. PHP can execute SQL queries, retrieve, update and delete data, and handle database connections and transactions.
  • Cost-Effective: As we have already learned, the programming language is free to use, distribute, and modify. That eliminates the need for expensive licensing fees and reduces development costs, making it an economical choice for web development projects.
  • Scalability: PHP is capable of handling high traffic loads and can easily scale. You can use it together with caching techniques and other optimization strategies to enhance performance. Plus, it’s generally faster than some other programming languages, such as Python.

How PHP works: Creating dynamic web content

One of the main reasons why PHP is so popular for web development is that it seamlessly integrates with various technologies and services commonly used in this area. Examples include HTTP, POP3, IMAP, and more. 

One of its main advantages is that it is highly compatible with HTML, the main language used to create and display websites. In fact, it’s possible to use PHP code in HTML files and vice versa.

<div class="about__section is-feature has-subtle-background-color">
	<div class="column">
		<h2><?php _e( 'Shape the future of the web with WordPress' ); ?></h2>
		<p><?php _e( 'Finding the area that aligns with your skills and interests is the first step toward meaningful contribution. With more than 20 Make WordPress teams working on different parts of the open source WordPress project, there’s a place for everyone, no matter what your skill set is.' ); ?></p>
		<p><a href="<?php echo esc_url( __( 'https://make.wordpress.org/contribute/' ) ); ?>"><?php _e( 'Find your team &rarr;' ); ?></a></p>
	</div>
</div>

Above you can see how both languages appear in the same file. The PHP markup is delineated by opening and closing brackets (<?php and ?>) so that the server knows where it ends and begins. However, the PHP code itself is inside an HTML <p> element. The _e function is a WordPress function used for localization, which allows for easy translations across the WordPress software.

The main benefit of this is that using PHP allows web developers to display dynamic content in otherwise static web pages. For example, PHP is able to pull content directly from databases, making it great for templating. You can create a fixed layout for all web pages but then display different content depending on the page a user is on.

the templates page on a WordPress site showing All Templates

This is vastly different from pure HTML, where the content needs to be hard-coded in the page file in order for the browser to show it. PHP, on the other hand, can add it on the fly as needed. That’s one of the main benefits of this programming language—the ability to dynamically combine and display content from different sources and of different kinds according to what the user requests.

PHP and WordPress: The CMS’ heart and soul

As a WordPress user, PHP is especially important. The programming language forms the basis of much of what WordPress can do. It’s what allows you to create, edit, and delete pages, posts, media, and other content. That’s why you see that a lot of files that end in .php when you look in the directory of any WordPress installation.

A screenshot of the PHP patterns files for a WordPress website in VS Code

It’s also why, when installing WordPress on a server, the system requirements insist that PHP be present. In recent years JavaScript has been playing a bigger and bigger role in the WordPress ecosystem, mainly because of the adoption of the Gutenberg editor. That said, PHP is still the main workhorse in the background.

Powering themes and plugins

What are some of WordPress’ main tasks powered by PHP? Before the advent of block themes, WordPress themes were all written mostly in PHP, especially page template files. In fact, if you look at the template hierarchy, you can see that WordPress has PHP files for pretty much all pages and theme components.

a visualization of the WordPress template hierarchy
Image from WordPress.org

Why? So we have the ability to create a single layout for one type of content and then dynamically display what’s saved in the database for a particular piece of content.

That way, if you have 300 pages of the same kind on your site, you don’t need a file for each as you would on a pure HTML website. Instead, you just need one single page template file; PHP can then populate each individual page with its specific content.

PHP also makes it easy to compartmentalize different parts of your theme. For example, it’s very common to not have the markup for a footer in each file. Instead you can create a separate footer.php file and call it into your templates where needed. That way, if you want to modify the footer layout, you only have to make changes in a singular place—the footer.php file.

A highlighted footer template on the Pages template on WordPress with a mint green background

The same is true for plugins, aka collections of PHP files that contain the necessary markup for adding extra functionality to your WordPress site. When you activate a plugin, it gets added to the rest of your website code and can provide the functionality you are looking for.

Without PHP, there would be no WordPress

All of the above is only made possible by the flexibility that PHP offers. Besides the benefits we have discussed before, this is the main reason why WordPress relies on PHP to the extent that it does; PHP offers a ton of flexible functionality specifically for web development. PHP’s capabilities in content management, working with databases, and its modularity all make it a perfect candidate for powering the most popular website builder there is.

This also means that if you know PHP, it opens up a lot more possibilities to modify your WordPress website. You can write custom plugins, make changes to (non-block) themes and page templates, introduce functionality to functions.php, and so much more. So, if you want to improve your WordPress skill set, learning PHP is not a bad place to start.

PHP in everyday life: You rely on it more often than you think

Besides WordPress, you might actually be unaware how much of your general everyday online interactions are enabled by PHP. There are a number of very well-known websites that use PHP to run and many common processes that the programming language performs online:

  • Facebook: The largest social network in existence was initially built using PHP. While they have moved away from the programming language over time, it still plays a significant role in their infrastructure.
  • Wikipedia: The world’s biggest online encyclopedia also relies heavily on PHP for its back end operations, content management, and user interactions.
  • Tumblr: This microblogging and social networking platform employs PHP to power its vast network of user-generated content and social interactions. We’re actually in the process of migrating Tumblr’s backend to run on WordPress; if you’re interested in being a part of this exciting project, leave your information here.
  • Slack: This widely-used team collaboration and communication platform utilizes PHP for its back-end operations, real-time messaging, and API integrations.

And this is just the tip of the iceberg. There are countless other examples of well-known web staples that exist in part because of PHP.

Other abilities of PHP

Up until this point, we’ve mostly talked about PHP in the context of creating and outputting HTML markup; however, the programming language is involved in a lot more that you probably take advantage of on a daily basis:

  • Form Processing: PHP can process and validate data submitted by users via forms. It’s also capable of performing actions such as storing data in a database, sending email notifications, or generating dynamic responses based on user input. Plus, it comes with encryption to keep the submitted data safe.
  • User Authentication: It can also handle user authentication by verifying login credentials. PHP allows you to implement user registration and login/logout functionality, and it can control access to different areas of your website or application. For example: user roles.
  • Session Management: PHP can also manage user sessions, store session data, and track user activity. Among other things, this allows you to save user preferences. PHP can also set cookies and receive cookie data.
  • File Manipulation: The programming language provides a wide range of functions for file manipulation, such as reading and writing files, uploading files from forms, creating directories, and modifying file permissions. This comes in handy for managing files on the server through other applications (like WordPress).
  • Email Handling: PHP comes with functions to send emails from a server. This allows you to build features like contact forms, email notifications, and automated email responses.
  • Third-Party Communication: With PHP you can interact with external APIs and web services. It makes it possible to integrate with other applications, retrieve data from remote servers, and perform actions like posting to social media platforms.

What is PHP? It is the web’s backbone

If you’re an everyday WordPress user or non-developer, you probably don’t spend a lot of time thinking about how much of your online experience is possible thanks to the humble PHP. However, the more you dive into this topic, the more you’ll realize how much you rely on it.

Who knew an open source solution was at the heart of what makes the World Wide Web tick? From the largest content management system in the world to well-known web entities, so much of what we take for granted exists because of it.

There are good reasons why it’s so widespread; from its powerful capabilities over its wide support system to ongoing development and support, there is a lot that speaks for PHP as the go-to solution for web projects.

Since it’s also beginner friendly, learning some PHP skills is definitely a good place to start if you want to dive deeper into the technical aspects of WordPress and web development.