WordPress Interview Questions & Answers
Here, you will find Top WordPress Interview Questions and Answers.
These WordPress interview questions are helpful for freshers (beginners) as well as experienced job seekers.
Find, WordPress interview questions are related to WordPress CMS, functions, admin panel, file structure, database, themes, plugins, actions, filters along with examples.
WordPress Post status is used to set status of posts to treat them differently.
In default WordPress, There are mainly 8 post status:
- Publish: When we publish WordPress posts, it updates posts status to ‘publish’ and post is visible to everyone.
- Future: If you schedule WordPress posts, its status is set as ‘future’
- Draft: If your post is not ready for the public, you can save it as a ‘draft’ to publish later.
- Pending: In WordPress, a contributor (a type of user role) can create posts but cannot publish. These posts are set as a ‘pending’ status and it can be published by Admin or Editor role.
- Private: These posts are visible to site admins and editors only.
- Trash: If you move a post to ‘Trash’, they are set as a ‘trash’ status. After ‘Trash’, you can either restore or delete it permanently.
- Auto-Draft: WordPress saves revisions automatically while you are editing with status ‘auto-draft’
- Inherit: This is used for child posts (such as Attachments and Revisions) to check the actual status from the parent post.
Additionally, You can create Custom Status using the WordPress hook
register_post_status()based on your theme or plugin feature.
- All folders and directories should be 775, 755 or 750.
- wp-config.php should be 644. Set 440 or 400 to prevent other users on the server from reading it.
- .htaccess – 644 is the recommended permission.
- php.ini – 644 is the recommended permission.
- All other files should be 664.
New XML Sitemaps Functionality is added in WordPress 5.5 core. If you have WordPress 5.5 or later, your website sitemap URL is: https://your-website.com
If you want to customize WordPress sitemap, there are many hooks and filters listed in Documentation.
WordPress version 5.5 is released publicly on August 11, 2020. This version includes few major features like Auto-Updates, Block patterns, Built-in XML Sitemaps, block directory search, and Inline image editing.
For more details, see List of Features & Changes in WordPress 5.5.