WordPress Interview Questions & Answers

~ When is WordPress released?
WordPress was initially released on 27th May 2003 by Matt Mullenweg and Mike Little.

~ What are the types of hooks in WordPress and mention their functions?
There are two types of hooks 1) Action hooks 2) Filter hooks.
Hooks allow a user to create a WordPress theme or plugin with a shortcode without changing the original files. Action hooks allow you to insert an additional code from an outside resource, whereas, Filter hooks will only allow you to add content or text at the end of the post.

~ What do you mean by a custom field in WordPress?
The custom field is a meta-data that allows you to store arbitrary information in the WordPress post. Through the custom field, extra information can be added to the post.

~ What is the positive facet of WordPress?
1. Easy installation and upgrade
2. In-built SEO engine.
3. Easy theme system.
4. Flexibility – you can create everything from blogs to business websites.
5. Multilingual- available in more than 70 languages.
6. Own data- no unwanted advert on your website.
7. Simplicity – it’s quick and easy to use.
8. Publishing Tools – you can easily manage your content.
9. Media Management – quick and easy image upload.
10. Numerous Plugins.

~ What are WordPress Plugins?
WordPress offers a huge variety of plugins for maximum flexibility when it comes to creating a website.
You can add spam protection, social networking, complex galleries, calendars, forums, and hundreds of other plugins and features.

~ Posts and Pages – What is the Difference?
Pages are static, they are not listed by date, and they don’t use tags or categories. They are permanent and timeless (unless you delete them).
Posts are entries listed in reverse chronological order (the latest appears first). The exception is sticky posts that you can create if you want them to appear at the top.

~ To follow the basic rules for WordPress plugin development?
1. Create a unique name
2. Create the plugin’s folder
3. Create a sub-folder for PHP files, translations, and assets
4. Create the main plug-in file and fill in the header information
5. Create activation and de-activation functions
6. Create an uninstall script
7. Create a readme.txt file
8. To detect paths to plugin files use proper constants and functions.

~ What is the prefix of WordPress tables by default?
“wp_” is the default prefix for WordPress.

~ Why does WordPress use MySQL?
MySQL is a widely available database server and is extremely fast. It is an open-source, and it is available at no cost also it is supported by many low-cost Linux hosts so it’s easy for anyone to host their website.

~ Is it possible to rename the WordPress folder?
Yes, it is possible to rename the WordPress folder. If WordPress is already installed, you have to log in to the administrator and then change the settings menu.
WordPress address (URI) :
Blog address( URI) :

~ How many tables are there in WordPress by default?
11 tables in WordPress default added at installation time.
1. wp_options
2. wp_users
3. wp_links
4. wp_commentmeta
5. wp_term_relationships
6. wp_postmeta
7. wp_posts
8. wp_term_taxonomy
9. wp_usermeta
10. wp_terms
11. wp_comments

~ How can you disable the WordPress comment?
If you go to the Setting Menu > under options Discussion menu, there is a comment section “Allow people to post a comment” try unchecking the comment for disabling comments.

~ What are the steps you can take if your WordPress file is hacked?
1. Install security plugins like WP security or Wordfence etc.
2. Re-install the latest version of WordPress.
3. Change password and user-ids for all your users.
4. Check your themes and plug-ins are up to date
5. Removed all the unwanted or hacks files.

~ Does WordPress have cookies?

~ In which cases you don’t see the plugin menu?
You can’t see your plugin menu when the blog is hosted on free wordpress.com as you cannot add plugin there. Also, if you do not have an account of an administrator-level on your WordPress is not possible to see the plugin.

~ Why you use a static front page in WordPress?
Some WordPress users want their WordPress installation to be more than a blog site. To give their page a look more like a real website page some users use static front page.

~ Why does widget not show up in the sidebar?
While using a widget, you have to ensure whether your theme supports the widget and if it does then, it must show the sidebar. If in any case if it happens that you don’t see the sidebar, then it might be missing the “function.php” file or file similar to that. This can also happen if you have forgotten to save the changes in the widget or to refresh the older display of the page.

~ Is there any limitation for using WordPress?
No, there is no limitation for using WordPress. WordPress can be used for an innumerable purpose membership site, e-commerce sites, photo-gallery and many more.

~ Do de-activated plugins slow down a WordPress site?
No, de-activated plugins cannot slow down the WordPress site. WordPress only loads the active plugins and ignores everything else.

~ In what case we cannot recommend WordPress to our client?
We cannot recommend WordPress in the following situation:
1. If the client is working on a non-CMS based project.
2. If a site wants complex or innovative e-commerce.
3. In the case of an enterprise intranet solution.
4. Sites are requiring custom scripting solutions.

~ What is a Child Theme?
The child theme is an extension of the parent theme. If you make changes to the main/parent theme, any update will undo the changes. With a child theme, the customizations are maintained on an update.

~ Is there any other CMS better WordPress?
WordPress is no doubt a good CMS, but Drupal and Joomla are among the best CMS you can work with.

~ What are meta-tags?
Meta-tags are descriptions and keywords for displaying website or page information.

~ Can you host WordPress using Amazon web services such as EC2, RDS, EBS, etc.?
Yes, you can host using Amazon web services.

~ How Does Debug in WordPress Work?
WP_DEBUG is a PHP constant that can be used to enable the debug mode throughout WordPress at any time. By default, it is assumed to be false so you need to set it to true in the wp-config.php file.

~ What are WordPress Taxonomies?
In WordPress, a “taxonomy” is a grouping mechanism for some posts or links or custom post types.
Default taxonomies in WordPress are Category, Tag, Link Category, Post Formats.

~ What Are Custom Fields in WordPress?
Custom fields in WordPress can be assigned to a post for extra information.

~ What are the Template Tags?
Template tags are used within the Templates to customize your blog. The common types of tags are:
General Tags
Author Tags
Bookmark Tags
Category Tags
Comment Tags
Link Tags
Post Tags
Post-Thumbnail Tags
Navigation Menu Tags

~ List some action and filter hooks functions in WordPress?
Below are list of some Filter hooks functions
1. has_filter()
2. add_filter()
3. apply_filters()
4. apply_filters_ref_array()
5. icurrent_filter()
6. remove_filter()
7. remove_all_filters()
8. doing_filter()

Below are list of some Action hooks functions
1. has_action()
2. add_action()
3. do_action()
4. do_action_ref_array()
5. did_action()
6. remove_action()
7. remove_all_actions()
8. doing_action()

~ What are the template tags in WordPress? List some of them.
In WordPress template tags are PHP functions that are used to display information dynamically or customize blog template.Below are the list of some generally used template tags in WordPress
1. get_header()
2. wp_register()
3. get_sidebar()
4. wp_title()
5. wp_enqueue_script()
6. get_the_author()
7. wp_list_authors()
8. category_description()
9. get_bookmarks()
Read More about WordPress template tags: from https://codex.wordpress.org/Template_Tags

~ Explain Categories in WordPress.
Categories allow a user to divide their content into different sections. Different topics publishing on a single website can be divided into different groups. It tells a reader what a post is about and they can easily find their content from a lot.

~ How to convert a category into the tag?
WordPress provides you an option to change the category into tag and tag into a category. For this, you need to install Categories and Tags Converter from the Import option under Tools section.

~ Explain Tags in WordPress.
With the help of tags, similar posts can be grouped. Hence, it makes more comfortable for the users to search for a particular post. Tags are similar to categories but still different.

~ How many types of users WordPress have?
WordPress user role determines access permission to the users of a WordPress site.
1. Administrator: They have full rights over a site.
2. Editor: They deal with the content section of a website.
3. Author: They only deal with their posts. They can delete their posts even after publishing.
4. Contributor: A contributor doesn’t have the right to publish their post or page. They need to send it to the administrator for review.
5. Subscriber: Users who are subscribed to your site can log in and update their profile.

~ What are WordPress Themes?
With the help of a WordPress theme, you can design the layout and appearance of your website in the front-end.

~ How to improve security on a WordPress site.
Security in a WordPress site is essential as these websites are favorite targets for hackers. A site can’t be perfectly secured, but one can at least reduce the risk by applying different security measures.

Some of the measures to secure a WordPress site are given below:

1. Choosing a host
2. Strong password
3. 2 step login authentication
4. Limit number of login attempts
5. Use SSL
6. Keep site updated

~ How to reset password in WordPress?
If you forget or lost the password of your account, WordPress gives you an option to reset it through different methods.

There are four ways to reset the WordPress password:
1. Change password from the dashboard
2. Reset password via email
3. Manually reset the password through database via PhpMyAdmin
4. Using emergency password reset script

~ How to optimize WordPress site performance?
Optimization increases the speed of your site and gives the best possible outcome. It improves the ranking of a website.
There are many tricks to optimize a WordPress site. Some of them are given below:
1. Use CDN
2. Use a caching plugin
3. Use a simple theme/framework
4. Keep site updated
5. Split long posts into smaller pages

~ Why is Backup important?
Backup allows you to retrieve your site back if something goes wrong or if your site breaks. There could be many reasons for this like external attack, hacking, server down.
You can lose everything from data to all the posts on your site. The backup is essential to avoid it.
Securing your backup is also an important issue. Make sure to update your plugins and themes regularly or in a specified interval. Use strong Username and Password. A database name should also be uncommon.

Leave a comment

Your email address will not be published. Required fields are marked *