Home >> Interviews Q & A >> Wordpress developer interview questions

Wordpress developer interview questions

Wordpress developer interview questions: WordPress is a free, open-source CMS written in PHP.
WordPress is an open source CMS written in PHP.
Q:- What is the different between wordpress.com vs wordpress.org?
wordpress.com
WordPress.com (fully hosted), focus on your beautiful content, and let us handle the rest. it has limitations when it comes to plugin, theme customization etc
wordpress.org
WordPress.org (self-hosted), get your hands dirty, and host your website yourself. it provides more flexibility when it comes to plugin, theme customization etc
Q:- What is the use of WordPress?
  1. WordPress is a free and open-source blogging tool and a content management system (CMS) based on PHP and MySQL. Features include a plugin architecture and a template system.
  2. WordPress was used by more than 23.3% of the top 10 million websites as of January 2015.As of February 2016, WordPress is used by 59.1% of all the websites whose content management system we know. This is 25.8% of all websites.
Q:- What is the features of WordPress?
Following are some of the important features that we think that you’ll love.
  1. Simplicity
  2. Easy Installation and Upgrades
  3. Flexibility
  4. User Management
  5. Media Management
  6. Easy Theme System
  7. Extend with Plugins
  8. Built-in Comments
  9. Search Engine Optimization
  10. Multilingual
  11. Importers
  12. Community
  13. Publish with Ease
  14. Publishing Tools
You may also like Core PHP Interview Questions
Q:- What are the developer features in a WordPress?
For developers, WordPress Have lots of goodies packed under the hood that you can use to extend WordPress in whatever direction takes your fancy.
  1. Plugins
  2. Themes
  3. Application Framework
  4. Custom Content Types
  5. The Latest Libraries
Q:- Why you should use WordPress?
WordPress is that it's easy to use and flexible enough for just about anything. That's the main reason why WordPress has grown so much in popularity. According to a recent survey, WordPress powers 22.5% of all websites on the internet. Let's take a look at why you should use WordPress.
  1. WordPress is Free
  2. Easy to Use and Learn
  3. Extendable by Using Themes and Plugins
  4. Search Engine Friendly
  5. Easy To Manage
  6. Safe and Secure
  7. WordPress Can Handle Different Media Types
Q:- In what ways you can use WordPress?
WordPress can be used in many different ways. It is open to possibilities. You can use WordPress as the following:
  1. Blog
  2. CMS
  3. Gallery
  4. Portfolio
  5. Rating Website
  6. E-Commerce
  7. Media Site
  8. Membership Site
Q:- What is the plugins in WordPress?
Plugins are ways to extend and add to the functionality that already exists in WordPress.
. Plugins then offer custom functions and features so that each user can tailor their site to their specific needs.
Q:- What are the rules that you have to follow 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 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 file use proper constants and functions
Q:- How to run database Query in WordPress?
$wpdb->query("select * from $wpdb->posts where ID > 10");
Q:- What is the difference between the wp_title and the_title tags?

wp_title() function is for use outside "The Loop" to display the title of a Page.

the_title() on the other hand is used within "The Loop".

Q:- How to secure your wordpress website?

You can secure your wordpress website by using following things:

  1. Use Secure Hosting
  2. Don't Use Nulled Themes
  3. Install a WordPress Security Plugins
  4. Always Use Strong Password
  5. Disable File Editing
  6. Install SSL Certificate
  7. Change your WP Login URL
  8. Limit Login Attempts
  9. Update your WordPress version
You may also like MySQL Interview Questions
Q:- What is the default table prefix in WordPress?
By default, wp_ is the table prefix, if required you can change it at the time of installation.
Q:- Plugin for Multi-language features?
WPML Multilingual Plugin.
URL: https://wpml.org/
Q:- Alternative CMS of WordPress?
  1. Drupal
  2. Joomla
Q:- How to turn off the Notice/Warning from my wordpress website?
Open the wp-config.php file and WP_DEBUG set the false.
define('WP_DEBUG', false );
Q:- What is use of __() and _e() functions in Wordpress?

These are the function used when you website multilingual, each of this function has two parameters.

1st parameter: String which you want to convert from one language to another.

2nd parameter: domain name.

Q:- How to check admin login or Not?
if(is_admin()) {
// write your logic here
}
Q:- How to get the current page name in WordPress?
You can get the page name from below of two?
$slug = basename(get_permalink());
OR
$pagename = get_query_var('pagename');
Q:- What is Hooks in WordPress?
Hooks allow the user to create a WordPress theme or plugin with shortcode without changing the original files.
Q:- What are the types of hooks in WordPress?

Following are two types of hooks

  1. Action hooks: This hooks allow you to insert an additional code.
  2. Filter hooks: Filter hooks will only allow you to add a content or text at the end of the post.
Q:- What types of hooks in wordpress is used?
1) Actions hooks:.
  1. has_action()
  2. add_action()
  3. do_action()
  4. do_action_ref_array()
  5. did_action()
  6. remove_action()
  7. remove_all_actions()
2) Filters hooks .
  1. has_filter()
  2. add_filter()
  3. apply_filters()
  4. apply_filters_ref_array()
  5. current_filter()
  6. remove_filter()
  7. remove_all_filters()
Q:- How can you backup your WordPress content?
Go to WordPress: admin -> Tools -> Import
Q:- List most commonly functions used in wordpress?
  1. wp_nav_menu() :- Displays a navigation menu.
  2. is_page() :- To check if this is page OR NOT, will return boolean value.
  3. the_title():- Displays the title of the post in website.
  4. the_content():- Displays the contents of the post in website.
  5. get_the_excerpt() :- Copy the excerpt of the post into a specified variable.
  6. in_category() :- Check if the specified post is assigned to any of the specified categories OR not.
Q:- What are the file structure in wordpress?
Following are main files which used in wordpress
  1. index.php :- for index page.
  2. search.php :- For display the search result page.
  3. single.php :- for single post page.
  4. page.php :- display the static pages.
  5. category.php :- Display the category page.
  6. tag.php :- For display the tags page.
  7. author.php :- For display author page.
  8. taxonomy.php :- For display the taxonomy archive.
  9. attachment.php :- For managing the single attachments page.
  10. header.php :- For managing top part of page.
  11. footer.php :- For manage bottom part of pages.
  12. archive.php :- For archive page display.
  13. 404.php :- For display 404 error page.
Q:- What is name of function which is used to register a shortcode handler?
add_shortcode

It has two parameter, first is shortcode name and second callback function.

#Example:

add_shortcode( 'shortcode', 'shortcode_handler' );
Q:- How to create shortcode in wordpress? Give working example?
You can use following syntax:
add_shortcode( $tag , $func );

function customtag_func( $atts, $content = "" ) {
 return "content = $content";
}
add_shortcode( 'customtag', 'customtag_func' );

Use: [customtag]content[/customtag]
Ref Link: https://codex.wordpress.org/Function_Reference/add_shortcode
Full Stack Tutorials

Author | Blogger @FullStackTutorials | View all articles