Wordpress interview questions and answers 👇

  1. WordPress General Interview Questions

WordPress General Interview Questions

Where is WordPress content stored?

View answer

WordPress contents are stored in MySQL database on Server.

What are the types of hooks in WP and what are their functions?

View answer

There are two types hooks are available in WordPress, action hooks and filter hooks

They allow the user to, with short snippets of code, modify areas in a theme or plugin without modifying the original file.

How do you enable debug mode in WP?

View answer

You can enable debug mode in WP by editing wp-config.php file and changing WP_DEBUG constant value to true.

What is a WordPress taxonomy?

View answer

In WordPress, a “taxonomy” is a grouping mechanism for some posts (or links or custom post types). There are four default taxonomies in WordPress they are

  • Category
  • Tag
  • Link Category
  • Post Formats

You are also free to create your custom taxonomies too.

How many default tables are the WordPress, Can you list them?

View answer

There are 11 table in wordpress, they are:

  • wp_options
  • wp_users
  • wp_links
  • wp_commentmeta
  • wp_term_relationships
  • wp_postmeta
  • wp_posts
  • wp_term_taxonomy
  • wp_usermeta
  • wp_terms
  • wp_comments

How to run database Query on WordPress?

View answer

WordPress’s query function allows you to execute any SQL query on the WordPress database. It is best used when there is a need for specific, custom, or otherwise complex SQL queries. For more basic queries, such as selecting information from a table, see the other wpdb functions above such as get_results, get_var, get_row or get_col. Syntax

<?php $wpdb->query('query'); ?>

How will you display error messages during development in WordPress?

View answer

To display error messages in WordPress. Open WordPress wp-cofig.php file and change WP_DEBUG constant value to true.

In WordPress, WP_DEBUG is a PHP constant (a permanent global variable) that can be used to trigger the “debug” mode throughout the website.

What is usermeta function in Wordpress?

View answer

The user metafunction is used to retrieve the metadata of users. It can return a single value or an array of metadata.

  • Syntax is: 'get_user_meta( int $user_id, string $key = '', bool $single = false )'
  • User id is the required user id parameter
  • Key is the optional parameter which is the meta key to retrieve. By default, it returns data for all key values.
  • Single is an optional parameter that tells whether the single value will return. By default, it is false.

Can you list any other CMS better than WordPress?

View answer

No doubt that WordPress is a good CMS, but there are some other best CMS as well that the user can work with too, like Drupal and Joomla.

Why is a static front page used in WordPress and how can you create one?

View answer

Some users want their WordPress installation to be more than a blog. In order to give their page a look like a real website, the users tend to use a static front page. The static front page in a WordPress can be created in the page section, where the user has to upload a PHP file to the server in the theme folder.And, then later select that is selected as a template, and that ultimately allows you to add any page and look that you wanted for your blog and will remain static.

Is wordpress.com more secure than wordpress.org?

View answer

Yes, wordPress.com is considered to be more secure than WordPress.org because it limits the themes and does not allow the installation of plugins. But, the security is, however, more dependable on how your website is hosted by the hosting company and also the steps they take to prevent the security problems.

Why is MySQL used in WordPress?

View answer

The following features of MySQL satisfy the use of MySQL in WordPress and make it easy for anyone to host their website.

  • The widely available database server
  • Extremely fast
  • Open source
  • Free of cost
  • Supported by many low-cost Linux hosts

Mention the rules to be followed while developing the WordPress Plugin?

View answer

While developing a WordPress Plugin, the following rules should be followed step by step:

  • Create a unique name.
  • Create the folder of Plugin.
  • Create a sub-folder for PHP files, translations, and assets.
  • Create the main plug-in file and fill up the header information.
  • Create activation and de-activation functions.
  • Create an uninstall script.
  • Create a readme.txt file.
  • In case of detecting the paths to plug-in file, use proper functions and constants.

How will you display error messages during development in WordPress?

View answer

To display error messages in WordPress. Open WordPress wp-cofig.php file and change WP_DEBUG constant value to true

In WordPress, WP_DEBUG is a PHP constant (a permanent global variable) that can be used to trigger the “debug” mode throughout the website.

Function to get website url in wordpress?

View answer

get_site_url(); function is used to get website url in wordpress.

What are the template tags in WordPress? List some of them.

View answer

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:

  • get_header()
  • wp_register()
  • get_sidebar()
  • wp_title()
  • wp_enqueue_script()
  • get_the_author()
  • wp_list_authors()
  • category_description()
  • get_bookmarks()

List some action and filter hooks functions in WordPress?

View answer

Below are list of some Filter hooks functions:

  • has_filter()
  • add_filter()
  • apply_filters()
  • apply_filters_ref_array()
  • current_filter()
  • remove_filter()
  • remove_all_filters()
  • doing_filter()

Below are list of some Action hooks functions:

  • has_action()
  • add_action()
  • do_action()
  • do_action_ref_array()
  • did_action()
  • remove_action()
  • remove_all_actions()
  • doing_action()

What are the rules that you have to follow for WordPress plugin development?

View answer

  • Create a unique name
  • Create the plugin’s folder
  • Create a sub-folder for PHP files, translations, and assets
  • Create the main plug-in file and fill in the header information
  • Create activation and de-activation functions
  • Create an uninstall script
  • Create a readme.txt file
  • To detect paths to plugin file use proper constants and functions

Is it possible to rename the WordPress folder?

View answer

Yes, it is possible to rename the WordPress folder. If WordPress is already installed, you have to log in to the weblog as the administrator and then change the settings

WordPress address (URI) :

Blog address( URI) :

After making the changes, you can rename the folder or directory with the WordPress file in it.

What are the steps you can take if your WordPress file is hacked?

View answer

  • Install security plugins like WP security
  • Re-install the latest version of WordPress
  • Change password and user-ids for all your users
  • Check your themes and plug-ins are up to date

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

View answer

Yes, you can host using Amazon web services.

How can you create a static page with WordPress?

View answer

To create a static page in WordPress, in the page section you have to upload a PHP file to the server in the theme folder, and then select that as your template. It allows you to add any page and look that you wanted for your blog and it will remain static.

What is a Child Theme?

View answer

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 preserved on an update.

Why does widget not show up in the sidebar?

View answer

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.

What are the plugins you can use to create a contact form in WordPress?

View answer

To create a contact form in WordPress, you can use a plugin like Gravity forms or also you can use a free plugin contact form 7.

What is WordPress loop?

View answer

To display post WordPress use PHP code, this code is known as a loop.

What do you mean by a custom field in WordPress?

View answer

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

From SEO point of view is WordPress helpful? Will it show the website on Google?

View answer

It is one of the benefits of using WordPress; it has inbuilt SEO search engine. Also, you can have an additional plug-in in WordPress to help with SEO and rank on a popular search engine like Google.

Is there any limitation for WordPress website?

View answer

WordPress can be used for e-commerce sites, membership sites, photo galleries and any other type of site you can think. Following are some disadvantages of WordPress:

  • Using several plugins can make the website heavy to load and run.
  • PHP knowledge is required to make modifications or changes in the WordPress website.
  • Sometimes software needs to be updated to keep the WordPress up-to-date with the current browsers and mobile devices. Updating WordPress version leads to loss of data, so a backup copy of the website is required.
  • Modifying and formatting the graphic images and tables is difficult.

How can you add a Custom dynamic sidebar to your WordPress?

View answer

How can you add a Custom dynamic sidecar is one of the most important WordPress Questions and Answers. The side bar area in your WordPress refers to the place where you can use your widgets along with the theme.

Also, the area is termed as the Widgetized area. The sidebar can be created using the register_sidebar function along with one argument of the parameters that comes with the option for setting the widget area.

You can wrap the $args array and register_sidebar() with separate functions named as ‘widgets_init’hooks. You can use the register_sidebar () method to add the sidebar on WordPress. Here are the syntax codes:

   'name' => __('Sidebar name', 'theme_text_domain’),
                                           'id' => 'unique-sidebar-id',
                                           'description' => '',
                                           'class' => '', 'before_widget' => '<li id="%1$s" class="widget %2$s">',
                                           'after_widget' => '</li>',
                                           'before_title' => '<h2 class="widgettitle">',
                                           'after_title' => '</h2>'

How do you ensure security using your WordPress site?

View answer

Ensuring the security on your WordPress site is of most importance due to the protection of data. Here are the various ways that you can apply to ensure security:

  • Opt for using a Unique username and a password
  • You can consider precautions to combat the Brute force
  • Consider keeping the plugins, keeping and version along with the themes regularly updated
  • Use protection from viruses and malware
  • You can use a WordPress security plugin

How many types of user roles are there in WordPress?

View answer

There are various types of user roles and user types in WordPress. Here is the answer for this one of the very common WordPress Questions and Answers:

  • Author role
  • Administrator role
  • Editor role
  • Contributor role
  • Subscriber role

How do you install WordPress to your system using the basic steps?

View answer

Well, the following are the fundamental steps to install WordPress to your system:

  • Start with downloading and unzip the latest WordPress version from the official website.
  • Now you need to create a database for WordPress on your system.
  • Find and rename the wp-config-sample.php to wp-config.php. Then you need to add the database information.
  • After that upload, the WordPress files to your webserver.
  • Now you need to run the URL from the browser.
  • Complete with setting the basic information such as title, username, password, and start using the site.

Where does the difference lie between character 23 and x23?

View answer

The 23 refers to the octal 23, whereas the x23 refers to the hex 23.

Does WordPress come with the hosting feature compatible with Amazon web services like EC2, EBS, RDS, etc.?

View answer

Yes, you can easily host your WordPress site using the Amazon web services such as EC2, RDS, EBS, etc.

Why should one not hack the WordPress core file?

View answer

The reason you should not opt for hacking the WordPress core file is whatever you are doing on it; you need to rework it as a patch. Thus, it is better not to hack the WordPress core file.

Custom post type or custom database tables, which one is best to use for your plugin development?

View answer

Though there is no particular reference for the plugin development, it is dependable on what type of plugin you need to develop. Many recommendations go compatible with the custom post type.

But the custom database table holds more benefits than the custom post type. One needs to choose based on the requirements for the plugin development.

Are there any ways to write a series in WordPress?

View answer

The answer to this one of the very common WordPress Questions and Answers is yes, there are ways to organize a series of plugins. If you want to write a series in WordPress, you need to use the organizing of the plugin series.

Which one is considered as the better CMS than WordPress?

View answer

Undoubtedly, WordPress tops the list when it comes to the ease of use and popularity of a convenient CMS.

However, also, there is Drupal and Joomla, which are considered as one of the best CMS for creating a site. Drupal is especially revoked for providing the utmost security features.

What are WordPress hooks?

View answer

It is provided by WordPress to allow your plugin to ' hook into' the whole WordPress; that is, to call functions in the plugin at particular times according to your need and thereby set your plugin in motion.

There are two kinds of hooks:

  • Actions hook
  • Filters hook

How to get a website URL in WordPress?

View answer

1get_site_url( int $blog_id = null, string $path = '', string $scheme = null )

All parameters are optional.

This command is used to retrieve URLs for a given website with WP application files accessible.

echo get_site_url();

How to change the homepage URL in WordPress?

View answer

Here are the steps to successfully change the Homepage URL in Wordpress. Go to the function.php file in your WP theme and use this code:

   if( ! is_home() && ! is_front_page() )
                                           wp_redirect( 'http://siteurl.com/news', 301 );
                                        add_action( 'template_redirect', 'redirect_homepage' );

How we can change table prefix ( wp_ ) in WordPress?

View answer

We can do it 2 ways:

Before installation : Go to wp_config.php file and rename $table_prefix = 'wp_'; whatever you want. After installation : Go to phpmyadmin -> select your databse -> check all tables -> Add/Update table prefix.

How to display custom Post in WordPress?

View answer

$loop = new WP_Query( $args );
                                        while ( $loop->have_posts() ) : $loop->the_post();
                                           echo '<div class="entry-content">';
                                           echo '</div>';

How to add custom dynamic sidebars in WordPress?

View answer

A Sidebar in WordPress is an area where widgets can be used with a theme and this area is also termed as a Widgetized area. In WordPress, sidebar is created by using a function named as register_sidebar() function. The widget zed area should be registered in WordPress supported the theme as they are presentational. The sidebar function takes only one argument of an associative array of parameters that set the options for the widget area. Wrap $args array and register_sidebar() both are separate functions that can be called on ‘widgets_init’ hooks. In short, with the use of register_sidebar() method/ function users can add sidebars to WordPress. Syntax code for the creation of sidebar-

   'name' => __( 'Sidebar name', 'theme_text_domain' ),
                                           'id' => 'unique-sidebar-id',
                                           'description' => '',
                                           'class' => '', 'before_widget' => '<li id="%1$s" class="widget %2$s">',
                                           'after_widget' => '</li>',
                                           'before_title' => '<h2 class="widgettitle">',
                                           'after_title' => '</h2>'

How to take backup of our WordPress website?

View answer

There are three ways to back up a WordPress website thoroughly.

  1. Backup Through Hosting Hosting providers offer service that completes daily, complete backups to your WordPress website.

  2. Backup Files Manually We have to download the entire WordPress directory via cPanel or SFTP program. We can also use WordPress database to backup website data manually.

  3. Automated Backup with Plugins There are many secure and easy to use WordPress backup plugins available for your use. Just install, configure few settings and you are ready to go. Few of them are: BackupBuddy Premium, BackWPup Free WordPress Plugin, Duplicator Free WordPress Plugin, UpdraftPlus Backup and Restoration Free WordPress Plugin, WordPress Backup to Dropbox Free WordPress Plugin, etc.

What is plugin? list some important WordPress plugin?

View answer

WordPress plugins are a type of apps that allows you to add more functionality and features to your WordPress website just like the same way as apps do for your smartphone. Plugins allow you to create any type of the site with WordPress, not just blogs. Nowadays plugins are very popular.

There are lots of plugins are available that listed below:-

  • Yoast SEO Plugin (This plugins are used for SEO purpose.)
  • Contact Form 7 (This plugins is used to make web forms with any code)
  • Sitemap & URLs Plugins
  • All In One WP Security & Firewall etc

Advantages of WordPress Plugins:

  • Helps in SEO
  • Ease Of Use and Quick Installation Process
  • It helps in to Keep Secure
  • Strong Community Support
  • Helps to use advanced features of WordPress

How do you create a page template?

View answer

We can create templates for various purpose like if we want to make a different layout rather than a home page or if we want to display custom posts types like news than we can create a template and merely display all news there.

Steps to create template in wordpress themes. Create a news.php file on root in theme folder. Insert get_header(); and get_footer(); in news.php page Add in top of this created page. Now this template name is "News Template".

Why WordPress is the best CMS?

View answer

WordPress is the best CMS in the world because of its features and advantages. It offers an open source environment which makes it completely free to manage and install.

There are many reasons why WordPress is considered the best CMS. Some of them are listed below:

Available huge Themes and Plugins SEO Friendliness and Security Open source and Free of Cost A large community of developers and users Inbuilt Admin User Interface and its Speed

What are the difference between post and page in WordPress?

View answer

In WordPress, Posts is a dynamic entity that has a published or updated date and is displayed on the blog page.

Example: news, events etc

Pages do not have published or updated date. Hence there are useful for the static and timeless type of content.

Example, the “About Us” or “Contact Us”

The difference between pages and posts is that the WordPress page is a static entity and post is a dynamic entity.

How we can disable comments in WordPress?

View answer

  • Go to admin panel -> setting -> click on the Discussion tab
  • Under Default article settings uncheck the box next to Allow people to post comments on new articles
  • Now click on Save Setting

Explain Avatar in WordPress?

View answer

Avatar or Gravatar is an icon or representation of a user in a shared virtual reality, such as chat, forum, website or any other form of online community in which the user wants to have something to distinguish themselves from other users.

It usually an 80px by 80px image that the user will create by ownself.

What should basic steps when our WordPress site hacked?

View answer

WordPress platform is one of the most used CMS platforms on the web. Hence the security of this CSM plays an imperative role. For the protection of WordPress data, it is important to implement standard security policies in WordPress by analyzing the existing loopholes. Following are the steps that should need to perform when your WordPress platform will be hacked-

  • Stay calm and search for an optimal solution
  • Try to locate the hack
  • Contact your hosting company
  • Hire an IT professional who is having the expertise of InfoSec
  • Restore various WordPress versions
  • Identify, scan and remove the malware
  • Check your access permissions
  • Change security principles (password and secret keys)

How to change the default length of the excerpt in WordPress?

View answer

To change the default length of the excerpt in WordPress, we have to insert the below-mentioned syntax to the functions.php file and edit the amount of the words that we desire to be displayed in our excerpts.

    return X;
                                        } );

Here above X is the number of words to be displayed.

How do I update my wordpress website?

View answer

There are two ways to update your WordPress - one-click update and manual update.

  1. One-click update All versions of WordPress from 2.7 onwards have this feature. You can update by going to the Dashboard and clicking "Updates" screen. On "Update WordPress," click "Update Now" for initiating the process.

  2. Manual Update

  • Replace your WordPress files
  • Download and unpack the latest zip file.
  • Deactivate plugins and delete old wp-includes and wp-admin directories on your host.
  • Using FTP, upload new wp-includes and wp-admin directories.
  • Upload individual files from a new wp-content folder, and overwrite existing files. Do NOT delete existing wp-content folder or files and folders in the current wp-content directory.
  • Next, upload new files from the root directory of the latest version to your current directory.

What are the steps to install WordPress theme?

View answer

Here are the steps:

  • In login dashboard, click "Appearance" "Theme" and "Add New."
  • On the top of your screen, click “Upload.” Click “Browse,” and select.ZIP file for a downloaded extension.

What is config file in WordPress?

View answer

wp-config.php is the most important file in WordPress installation. It links the database and files on your WordPress site together. Located in the root of WordPress file directory, wp-config.php contains configuration details, including database connection information.

What is custom fields in WordPress?

View answer

Custom fields are metadata used to include additional information about a post or page, like author name, title, date and time, etc. By default, the custom fields option in WordPress is hidden on the "edit" screen. If you want to see it, click ‘Screen Options’ at the top and enable "custom fields."

What is taxonomy in WordPress? Explain

View answer

Taxonomies in WordPress are used to group posts and post types together. Custom taxonomies can help developers create groups and bring them under one head.

There are 4 in-built taxonomies in WordPress- Category, Tag, Link Category, and Post Formats.

Is WordPress website is secure?

View answer

A WordPress site is like any other website or application and has security threats. In order to strengthen your WordPress’s security, you can consider implementing a Secure Socket Layer (SSL) certificate.

Where do I insert Google Analytics code in WordPress?

View answer

While there are different ways to add Google Analytics your WordPress site, here are the 3 most common ones:

  • Through MonsterInsights
  • By inserting plugins for Headers and Footers
  • By installing Google Analytics in the WordPress Theme

How do I edit the contents of a page in WordPress?

View answer

  • Login to WordPress admin area
  • If editing a Post, Click "Post" and then click "All Posts." Find the Post you want to edit and make changes. Click Publish.
  • If editing a page, Click "Pages" in left column menu, and click "All Pages." Find the page you want to update and make changes. Click Publish.

How to check if any plugin is active in WordPress?

View answer

With the method is_plugin_active() we can check any particular plugin is active or not.

How to check

                                        if ( is_plugin_active( 'plugin-directory/plugin-file.php' ) ) {
                                           // Activated

What are the new features in WordPress 5.3?

View answer

Here is the list of new features of WordPress 5.3

  • Improved features of current WordPress blocks like Block appender, changes in block
  • Visual differences in the admin panel.
  • Brand new blocks
  • Uploading and automatic rotation of high-resolution images
  • A new way of notifications via Snackbar notices.
  • New default theme Twenty Twenty
  • Typewriter experience
  • Auto-save function

How to display the current page title in WordPress?

View answer

You can display current page title by get_the_title()

What is wp_enqueue_script() function in WordPress?

View answer

In order to include JavaScript file in WordPress, a special function can be used namely wp_enqueue_script (). In WordPress, the preliminary goal of wp_enqueue_script () is to add a JavaScript file which is one of the WordPress action hooks. In order to use the wp_enqueue_script (), users should need to add JavaScript to each page on the WordPress site.

How to display an image URL from thumbnail in WordPress?

View answer

You we use get_the_post_thumbnail_url(); . You can use this inside loop or outside loop. If you are using this outside of loop then you have to pass post ID otherwise its optional in case inside loop.

How to create Shortcode function in WordPress?

View answer

Users can make shortcodes with the use of WordPress Shortcode API, as it enables users to take benefits of existing theme features from any test-based area on WordPress site.

The shortcode functions can be created in three simpler steps-

  1. Create function in function.php and register

    <div class="col-md-12 remove-padding m-t20">Shortcode function defination</div>
                                            add_shortcode('display_related_posts', 'display_related_posts');
  2. Now you can call anywhere in file or editor with this function. do_shortcode('[display_related_posts]');

How to display custom field value in page?

View answer

You can use get_post_meta(get_the_ID(), 'custom_field_name', TRUE);

// custom_field_name is field name.

How to add your custom image size for the featured image in WordPress?

View answer

The following steps need to use in order to customize image sizes in the CSM WordPress. Edit your existing theme’s funcation.php file and add the following code add_image_size( 'image_size_name', 1000, 590 );

Is WordPress safe from brute force login attempts? If not, how can you prevent such an attack vector?

View answer

No, WordPress on its own is vulnerable to brute force login attempts.

Some good examples of actions performed to protect a WordPress installation against brute force are:

  • Do not use the “admin” username, and use strong passwords.
  • Password protect “wp-login.php”.
  • Set up some server-side protections (IP-based restrictions, firewall, Apache/Nginx modules, etc.)
  • Install a plugin to add a captcha, or limit login attempts.

Suppose you have a non-WordPress PHP website with a WordPress instance in the “/blog/” folder. How can you show a list of the last 3 posts in your non-WordPress pages?

View answer

One obvious way is to download, parse, and cache the blog’s RSS feeds. However, since the blog and the website are on the same server, you can use all the WordPress power, even outside it.

The first thing to do is to include the “wp-load.php” file. After which you will be able to perform any WP_Query and use any WordPress function such as get_posts, wp_get_recent_posts, query_posts, and so on.

                                        <h2>Recent Posts</h2>
                                            $recent_posts = wp_get_recent_posts(array(‘numberposts’=>3));
                                            foreach($recent_posts as $recent){
                                                echo '<li><a href="' . get_permalink($recent["ID"]) . '">' . $recent["post_title"] . '</a></li> ';

How would you change all the occurrences of “Hello” into “Good Morning” in post/page contents, when viewed before 11AM?

View answer

In a plugin or in theme functions file, we must create a function that takes text as input, changes it as needed, and returns it. This function must be added as a filter for “the_content”.

It’s important that we put a little effort to address some details:

Only change when we have the full isolate substring “hello”. This will prevent words like “Schellong” from becoming “sgood morningng”. To do that we must use “word boundary” anchors in regular expression, putting the word between a pair of “\b”.

Keep consistency with the letter case. An easy way to do that is to make the replace case sensitive.

function replace_hello($the_content){
                                                $the_content=preg_replace('/\bhello\b/','good morning',$the_content);
                                                $the_content=preg_replace('/\bHello\b/','Good Morning',$the_content);
                                            return $the_content;
                                        add_filter('the_content', 'replace_hello');

List the positive aspects of WordPress?

View answer

Below are some of the positive aspects of WordPress that are:

  • It is a very easy installation process and up-gradation of it.
  • It has an in-built SEO engine.
  • It has many easy theme system.
  • Multilingual- available in more than 70 languages, which helps to provide easy understanding for all website users.
  • By using WordPress, a user can own data- no unwanted advert on your website.
  • Flexibility and Easy publishing option.

What tables are added to the WordPress database when the multisite feature is activated?

View answer

WordPress adds six additional tables in the database during a multisite installation.

  • wp_blogs: Stores information about each blog created in your network.
  • wp_blog_versions: Stores general information about each network blog ID, database version, and date of the last update.
  • wp_registration_log: Stores information about registered users.
  • wp_signups: Stores information about user sign-ups, including all the information from the wp_registration_log table. Also stores the date the user account was activated as well as the unique activation key the user accessed during the sign-up process.
  • wp_site: Stores information about the main installation site, including the site ID, domain, and server path.
  • wp_sitemeta: Stores all the information about the multisite configurations set after you install the multisite feature.

What is _e() in WordPress?

View answer

This function is similar to the __() function as explained below, just there is a difference. Rather than retrieving the translated string, this function displays that to the page. In other words, you can treat it as a PHP “echo” for the translated string.

What is __() in WordPress?

View answer

This WordPress function makes a string inside your plugin or theme translatable or retrieves the translated string from the translate() function.

How pages are different from posts in WordPress?

View answer

Pages are different from posts as they don’t get archived in the same manner as posts. They are neither categorized nor tagged. Also, pages don’t appear in the listing of recent blog posts or date archives. Further, WordPress doesn’t syndicate them in the RSS feeds available on your site.

What if your web hosting provider doesn’t have mod_rewrite activated?

View answer

In that case, the custom permalinks will work only if you use index.php before any custom permalink tag.

What are Avatars and Gravatars?

View answer

An avatar is an online graphical representation of an individual. It’s a small graphic icon that people use to visually represent themselves on the web where they participate in conversations. Discussion forums, as well as blog comments, are two such examples.

Gravatars stands Globally Recognized Avatars. They are quite popular as millions of people and websites use them. WordPress has built-in support for Gravatars. When a user leaves a comment along with email on a site that supports Gravatar, it pulls their Globally Recognized Avatar from Gravatar servers.

Explain about $wpdb variable in WordPress.

View answer

$wpdb is a variable that stores the WordPress database object. It can be utilized to perform custom database activities. It gives the most secure intends for the WordPress database.

Brief on Photon in WordPress?

View answer

Photon is an image speeding up and alteration service for Jetpack-associated WordPress websites. By using this converted images can cache automatically and serve from the WordPress.com CDN. Here images can be edited, resized, and filtered by utilizing an easy simple API controlled by getting query arguments. When you enable Photon in Jetpack, images are refreshed on the fly.

For SEO, What are the WordPress plugins mainly used?

View answer

  • Yoast
  • Google XML Sitemaps
  • Broken Link Checker
  • W3 Total Cache
  • WPtouch Mobile Plugin
  • Jetpack

Define OAuth2?

View answer

It is a protocol that allows the applications for interacting with blogs on WordPress.com

What are Common WordPress Errors?

View answer

  1. Parse Error/Syntax Error
  2. White Screen of Death (WSoD)
  3. Internal Server Error
  4. 403 Error
  5. Error Establishing a Database Connection
  6. Connection Timed Out Error
  7. Your Site’s Sidebar Appears Below the Main Content
  8. You’re Unable to Upload Images
  9. You’re Unable to Access the Admin Area
  10. WordPress Is Stuck in Maintenance Mode

What are WordPress Security Plugins in 2021?

View answer

  • Sucuri Security – Auditing, Malware Scanner and Security Hardening
  • iThemes Security
  • Wordfence Security
  • WP fail2ban
  • All In One WP Security & Firewall
  • Jetpack
  • SecuPress
  • BulletProof Security
  • WPScan – WordPress Security Scanner
  • VaultPress
  • Google Authenticator – Two Factor Authentication
  • Security Ninja
  • Defender
  • Astra Web Security
  • Shield Security
  • Hide My WP
  • WebARX