The currently required minimal PHP version is still 5.2.4+.
The recommended version is 7. According to archive.org since December 2, 2016.
Note that many plugins and themes need at least PHP 5.4 or newer nowadays, and that PHP versions below 5.6 do not get security updates anymore and are therefore probably not safe for production.
WordPress doesn’t use any of the newer PHP features, but it does work with the latest PHP version.
Related Posts:
- wordpress.org disallowing my plugin becuase of loading core files in cron cpanel file
- PHP 7.3 is required for WordPress 5.2 or Recommendation
- Removing the add to cart button from specific product pages
- count() parameter must be an array or an object that implements countable in laravel
- Allowed memory size of 268435456 bytes exhausted (tried to allocate 7146491840906359738 bytes)
- Receiving Stripe Webhooks on a wordpress website
- Sorting list of sites from multisite network using wp_get_sites
- Remove Customize Background and Header from Appearance admin menu without CSS or JS
- How to validate WordPress generated password in DB using PHP?
- PHP XMLRPC for WordPress: Adding meta tags and description
- How do I get the author’s page url from their ID?
- Correct use of curly braces vs alternative synax
- Missing Author Information
- How can I set custom order use this function
- How to set a link different behavior for logged and non-logged user?
- How does WP detect format type (and can I make use of this)?
- Check if Product is in a Specific Category in Functions.php
- How to generate HMAC-SHA1 signature to use with WP REST API and OAuth1
- How to add a dynamic javascript snippet to the footer that requires jQuery
- How can I get the page or post language when I use wpml? [closed]
- Button not refreshing page
- Trying to add attribute to my posts’ featured image
- Transferring working local PHP site to wordpress – with database (MySQL)
- Redirect to a different page through registration, depending on page
- Creating a related post section based on similar categories
- Using if/else statements with output from theme options
- How do I retrieve meta_key names with get_user_meta($user_id) call
- Redirect specific user role to specific site after login?
- Send multiple attachments with wp_mail in PHP
- Ordering users by custom user meta
- Make a list of sites for each user in WPMU – switch_to_blog (display in SITE_ID: 1)
- How to show a ‘correct’ message after submit a form?
- Odd / Even posts add class minus first post
- Sanitizing text fields in array
- Fatal Error in wp_get_current_user() Function
- How to combine 2 php functions into one function with a custom field
- How to redirect users based on role and content of redirect_to?
- wp_query get the 2nd post
- How to add div blocks after certain set of post
- php if username is role
- Making my first wordpress template
- Cinema site, retrive the movies that actor play in
- Create page template via functions.php?
- Short code template + ajax
- WPML best page selector with php
- Most commented posts by time period (last 12h, last 24h and etc)
- How insert a DIV at top of current theme? [closed]
- Modify main query before it run without pre_get_post
- Correctly Using checked function of WordPress
- Removing custom sort order from admin page listing
- Azure WordPress site – URLs not showing on move from root to subdirectory
- Change MySQL PDO connection to a WPDB connection
- Commas in Tag Cloud
- Query pulling a single post per month
- Getting a WordPress tag to print inside of a traditional php echo
- How to add a custom filter (by coding) before access one wordpress page ? And where to call the custom filter?
- WP_REST_Response – How to return Gzip answer and add Content-encoding header?
- Removing “There is no account with that username or email address.” error message in “/wp-login.php?action=lostpassword”
- Can’t log in to WordPress wp-admin after adding code to functions.php
- Show a specific post in wordpress with links
- Search by date in WordPress
- WP Website is shown in HTML
- Trying to add some custom text into WordPress Post title via function.php
- wp_update_post gives 500 internal error
- Site cannot access external connection
- Call WP Rest-Api to GET /users/me returned NOTHING in console
- How can I remember an action taken by a logged in user?
- Script to generate pages – taxonomies not loaded
- cant insert data in a custom table in phpmyadmin
- Invalid Argument foreach
- How to Link to category titles if it is in the single post content?
- How to add a PHP scripts into WordPress
- wp_set_object_terms returns 500 error when called through AJAX function
- How do I send a POST request with params with WordPress REST API
- Create custom admin page with custom text fields
- How to generate customized filtered output for the gallery
- Editable Student file associated with basic User ID
- Multisite – Display different header content based on which site is accessed
- List categories assigned to a post
- Call get_template_part() custom permalink
- How to set the plugin load order when updating the active_plugins option?
- Display Year and Month from custom field + Age Calculator
- How to remove image on single product and get product to span page?
- php string inside shortcode does not work
- No Authors for custom post type
- Creating a function that sanitizes the custom metabox excerpt
- Nav Menu Display
- WordPress & PHP sessions
- How to pass username into form that sends data to database
- How to add pagination for wordpress home page
- which php or css file has generated an inline style in WordPress that overwrites my css
- Change body_class() PAGE to HOME
- Pagination 404 on my index.php
- WP Fatal error: Call to undefined function get_template_directory_uri()
- REST API custom endpoints for metaboxes
- Add default block css when the block has been added with php?
- How to initialise WP_Query on the basis of a specific meta_value and continue iterating rest?
- Custom Post Type doesn’t have template content when creating programmatically in PHP but does when created in WP Admin
- how can i link threejs in my functions.php file in understrap theme
- WordPress / PHP: Check if column has value and then check if value in array