WordPress is written in:
PHP
Python
Ruby
Java
Which conditional statement checks to see if the current user is a Super Admin?
is_admin_user()
is_super_admin()
is_super_admin_user()
is_admin()
What is a helpful function for including translated javascript objects?
localized_js();
localize_script();
wp_localize_script()
wp_translate_js();
Wordpress allows Two Step Authentication
True
false
According to WordPress PHP Coding Standards, what kind of PHP tags are allowed?
Full and short PHP tags (i.e. both <?php ?>
and <? ?>)
Full, short and ASP-like tags (i.e. <?php ?>
, <? ?>, <% %> )
Full PHP tags
only (i.e. <?php ?>)
How do you schedule a post for later publishing?
Change your post's status to Pending Review and
click on the calendar.
Click the preview button and edit the date on the
preview page.
Click
"Edit" next to "Publish Immediately," select a time, then
click OK. Then click "Schedule."
Type the time you wish the post to go live into the
first line of the body of your post.
Click the tiny calendar icon next to "Publish
Immediately."
Which of the following is a valid permalink format?
/posts/%post_id%/
All are valid
/%year%/%postname%/
/%postname%/
/%year%/%monthnum%/%day%/%postname%/
What is the WordPress Codex?
An encyclopedia
of WordPress knowledge
The required password to access the WordPress
Dashboard
Encrypted codes used for template design
The name of a plugin used to enhance your template
WordPress.com is a service which
allows you to have unlimited weblogs under a single
account.
allows you to
set up a blog for free.
is the administration location of the provider of
platform software.
is where you will find all the answers to your
technical questions.
What is required to activate Akismet in WP?
The last four digits of your WordPress.org password
Your email address
An Akismet API
Key
Your Akismet username and password
Your WordPress.com account username
True or false? Plugins are compatible with each other at all times.
False
True
What can widgets do with supported themes?
Spell check your blog posts
Change the colors and fonts of the theme
Add content to
your sidebars
Place videos in the body of your posts
Can you migrate your WordPress.com blog to your own hosted website?
You really shouldn't do this at all.
No, this is not allowed as per the terms of service
on WordPress.com
Yes, but you have to purchase and syncronizer
plugin
Yes, but you
need to export the content and re-import it to your website
How much would it cost to get your own copy of the WordPress source code?
It's free for WordPress.com users but unavailable
to everyone else
$199.99
$299.00
Nothing, they
give it away for free.
$40.00
WordPress began as a publishing platform for:
Blogs
Web applications
Newspaper sites
Business homepages
HTML knowledge is required to install a WordPress theme.
True
False
Which of the following can you download and use to extend the native WordPress functionality?
add-ons
sparks
hooks
plugins
What is the name of the first page you encounter after logging into your web page?
Dashboard
Security question page
WP upgrade option
WPAdmin
What is the file that WordPress edits (or you can edit yourself) when installing WordPress?
The wp-installation.php file
The wp-database-settings.php file
The wp-login-information.php file
The
wp-config.php file
The wp-installer.php file
When upgrading to a newer version of WordPress, you should check with your web host to ensure the following minimum required versions of these exist:
WinZip and MySQL
PHP and MySQL
PHP and FTP
PHP and SSH (Secure Shell Access)
Is it possible to add a full-featured security plugin to your WordPress installation?
No
Not Sure
Yes
Before you upgrade WordPress, what is the most important task you must perform?
install Askimet
ensure the new version ends with ".2"
backup your
database
ensure your WP account is paid
What is the name of comment spam prevention plugin that comes default with WordPress?
Curecomment
Intense Debate
Disqus
Jetpack
Akismet
Items in WordPress sidebars are generally called:
Blocks
Widgets
Content Areas
Content Zones
You can build your WordPress site in your own language?
True
False
How can you get involved with WordPress?
Attend Word Camp
Edit the Codex (documentation)
Help in the Forums
All of these
Submit a bug report
How do you install a WordPress theme on your site?
Copy and paste the source code into a blog entry
Themes are not applicable to WordPress
Upload the source code to your server
Upload the theme
in /wp-content/themes/
How can you install a widget on your blog?
Copy and paste the code for a widget into your blog
Upload a file with the code for the widget onto
your server
Go to “widgets”
in Appearance, browse available widgets and install them
The server programmer must add it for you
Can you unschedule an event from WP cron, if the event has been created by another plugin?
No
Yes
How do you speed up the load time of your Wordpress website?
Compress images before uploading.
All of these
Use a Content Delivery Network.
Minimize plugin installation.
Minimize CSS.
True Or False ? is it possible to disable WordPress autosave function?
False
True
What software stack does WordPress require to operate correctly?
PHP, MySQL and Memcached
Python, MySQL and nginx
PHP, MySQL, and
a web server
Ruby, MySQL, and Apache
In WordPress, what is the user role with the highest privilege level?
Administrator
Author
Editor
Contributor
Of the following, which is a page in the administrative area of WordPress?
Dashter
Codex Control
Dashboard
None of these
What database table prefix is default for a Wordpress Installation?
tb_
wp_
wordp_
bl_
db_
How is WordPress licensed?
Wadalab Fonts License (Wadalab)
SIL Open Font License (OFL)
Bitstream Vera License (Bitstream Vera)
GNU General
Public License (GPL)
Liberation Font License (Liberation)
WordPress is a:
Coded Content Silo
Content Production Developer
Customer Relationship Manager
Content
Management System
What considerations should you make when using WordPress for a high-traffic site?
All of these
Make sure your host or hardware/network can handle
the traffic
Determine what size of files you will be hosting
and plan accordingly
How much time do you have to edit a post after publishing?
5 minutes
1 hour
15 minutes
24 hours
Posts can be
edited at any time.
WordPress requires which of the following?
A server with Ruby on Rails
A server with a lot of help from your neighbors
A server with
PHP and MySQL
A server with PHP and PostgreSQL
A server with Perl and MySQL
Which relational database does WordPress use?
MySQL
Oracle
PostgresSQL
MS SQLServer
You can easily add functionality to your WordPress blog by adding a:
Tool
Adapter
Plug-in
Apps
Where can you change your blog title?
You need to change core code
You cant change the blog title
From the widget
Upgrade the wordpress.org
Under the
"Settings > General" screen within the WordPress admin
When you use custom CSS to lay out your site, you can:
Text-wrap around an image
Add borders and captions
Use image styles
All of these
WordPress is an example of what type of software?
Windows
Open Source
Proprietary
Linux
How many authors can you have on your WordPress blog?
1
2
10
Unlimited
100
How do you deactivate a plugin?
Plugins cannot be deactivated
Your site moderator must deactivate it for you
On the Plugins
menu, select the plugin and click Deactivate
Delete the source code for the plugin from your
server
What is the default WordPress admin url?
/admin
/wp-admin
/manage
/wp-manage
True or False? Wordpress.org's software is free.
False
True
You can post to WordPress from iOS, Android, Blackberry, Windows Phone 7, and WebOS phones.
False
True
I am backing up my WordPress website. At a minimum, I need to make copies of:
The database and
wp-content folder.
The wp-content folder.
Can you add custom meta boxes to the post editor page?
No
Yes
Is it possible to hide wordpress header info?
Yes
No.
What is the name of the most famous WordPress plugin?
Hello Manny
Hello Dolly
Hello Sally
Hello Kelly
WordPress is written in what programming language?
Python
Ruby on Rails
PHP
Java
Perl
How much does it costs to host your plugin in WordPress plugin directory?
$4.99/year
$2.99/year
$1,000 Plugin Submission and Approval Fee
$10.99/year
Free
What is the maximum number of blogs that can be created in a WordPress network?
10
Unlimited
25
3000
100
WordPress is open source software.
True
False
True or False? WordPress is open source.
True
False
This filter is used by WP to minimize spam content:
Askimo
Eskimo
Scramble
Akismet
When you install a theme, where will the theme will be saved?
wp-includes
wp-admin
wp-root
wp-content
wp-config
How can you add an image to your blog entry?
You can't add an image to blog entries in WordPress
Upload the image to your server
Click "add
an image" and enter the URL of the image, or upload an image from your
computer
Email the image to your server moderator and ask
them to post it
In what folder are Plugins and Themes located?
wp-admin/
wp-includes/
wp-common/
wp-content/
wp-extensions/
WordPress Widgets are designed to do the following:
simplify the
arrangement of the various elements of your sidebar content, without code
changes
works in conjunction with plugins to ensure a more
secure site
allows for easier uploading of content onto your
home page
aid navigation through the web to find similar
content to yours
What is the key to solid WordPress SEO?
Relevant content
Minimal duplicate content
All of these
Backlinks and permalinks
What is another term for "HTML editor" within WordPress?
StepUp Effects
Visual Effects
Loop Editor
Text Editor
The sections of information that you can visually drag into your sidebar / footer are called?
Chunks
Excerpts
Widgets
Plugins
Gremlins
Standard post URLs like /index.php?p=76 can be replaced via:
Plugins
Jetpack
my-hacks.php
Permalinks
Core File Hacks
What are tools to extend the functionality of WordPress?
Modules
Blocks
Components
Themes
Plugins
Once you have entered your content onto your blog and completed final edits, what button do you activate to send it live?
Submit
Enter
Go
Publish
How do you post a new blog entry?
Click “new post”
on the main site
Click “blog info” on the main site
Click “My dashboard” on the main site
Email your entry to the WordPress moderators to
have them post it
Where can you edit your permalink settings?
Settings - Privacy
Settings - General
Settings -
Permalinks
Settings - Reading
New themes can be chosen from which Dashboard section?
Plugins
Settings
Widgets
Jetpack
Appearance
How would you troubleshoot the error message: "Database not connected."?
You change the username in phpMyAdmin
None of these
You check functions.php
You check style.css
Check the
database name, user and password in wp-config.php
Does WordPress have a built-in url rewrite engine?
Yes
No, and there's no way because it is useless
No, you need a SEO plug-in
When you install a theme, where will the theme files be stored?
wp-admin
wp-content
wp-config
wp-root
wp-includes
How can you display an RSS feed in your blog?
RSS feeds cannot be enabled
RSS feeds do not work with WordPress
Approve the feed link in Remote Content
Add the RSS
widget to your sidebar
If you forget your admin password, you should try this first:
Contact WordPress support
Call 1-800-WordPress
Click lost
password
Check the support blog
Your blog's timezone can be set via which Dashboard section?
Jetpack
Settings ->
General
Posts
Settings -> Reading
Settings -> Writing
WordPress can only be used as a blog.
False
True
True or False: The $wpdb object can be used to read data from any table in the WordPress database (such as custom plugin tables), not just the standard tables that WordPress creates.
true
false
How do you change the date display format in WordPress posts?
Enter a sample date using Jan 1 1900 as a
placeholder
It's controlled by the theme, so check theme
settings
Install the Date Modifier plugin
Change the
format under General Settings
How do you format text in your blog entry?
Copy and paste the formatted text from a word
processing program
Use raw html to
format the text after clicking the HTML tab or use the rich text editor to
format the text
There is no way to format text in blog entries
One of the following is required in a child theme. What is it?
widget.php
style.css
functions.php
sidebar.php
On a default configuration of self-hosted WordPress, which one of these lets me login to manage the site?
/admin
/wordpress.com
/letmein
/login
/wp-login.php
WordPress is powered by the content management platform Drupal.
True
False
There can only be one loop in a template.
True
False
Which license is WordPress available under?
Proprietary
Other
GPL v2
BSD
Apache
True or False: You can replace JavaScript libraries included with Wordpress.
False
True
Where should you go to download the latest version of WordPress?
GoDaddy
WordPress.com
WordPress.org
WP.org
How can you add a plugin to your WordPress site?
The server administrator must add the plugin for
you
In the
navigation menu, choose “add new” under plugins
In the navigation menu, choose “edit plugins” under
plugins
WordPress doesn't support plugins
Which function should you use to send an e-mail from within WordPress?
imap_send
mail
wp_mail
smtp_send
WordPress plugins might also be referred to as:
extras
additions
add-ons or
extensions
fillers
Wordpress is used by major companies such as People Magazine and CNN
True
False
WordPress is only available to web hosting companies and/or domain registrars.
True
Not Sure
Maybe
False
Who Knows
What are categories?
They work just like tags
Wordpress blogs do not have categories
They allow you
to organize your blog by subject
Labels applicable to other bloggers
What is a theme in WordPress?
The combined design and messaging statements in
your site that drive the user to a specific 'call to action'
A plugin that extends the functionality of a
WordPress site
A set of files
that work together to create the design and functionality of a WordPress site
A color scheme
Which of the following theme features are required in order to submit themes to the WordPress Theme Directory?
All listed
Support Widgets
Automatic Feed Links
Comments
When you use the "Export" feature of WordPress, it creates a ______ file which can then be imported to retrieve all posts, pages, comments, custom fields, categories, and tags.
JPEG
XML
RSS
JSON
What default user role is required to activate a new theme?
Contributor
Author
Administrator
Editor
Subscriber
What is the WordPress.com tag line?
A better way to
blog
Freshly pressed
WordPress is the best
Themes can add which of the following to WordPress?
Additional CMS capabilities
Functionality
Settings
All of these
Design
What are the registered user roles?
Viewer, commentator, author, guest, subscriber
Subscriber,
contributor, author, editor, administrator
Visitor, user, contributor, blogger, lurker
When registering a new post type if you set public => true, then your post type will be
available for selection in navigation menus.
visible in search results.
visible in the admin interface.
visible publicly in the front-end.
All of these
Do new versions of WP provide support for automatic upgrades of itself?
Yes
No
When you install a plugin, where will the plugin be saved?
wp-includes
wp-content
wp-admin
wp-config
wp-root
What is the correct casing of wordpress?
Wordpress
wordPress
WordpRess
wordpress
WordPress
When you need to access your WP Dashboard, which URL do you use?
www.yourdomain.com/admin/wp-admin
www.yourdomain.com/wp/dashboard
www.yourdomain.com/admin-wp
www.yourdomain.com/wp-admin
How do you edit your WordPress profile?
Go to "My blog"
Click “Edit
profile” under the My Account dropdown menu
Click “My dashboard”
Profiles are only editable at registration
From which of the following blog sites does WordPress provide the feature to import posts?
Tumblr
Technorati
LiveJournal
Blogger
True or False? A standard WordPress installation can be set to require an administrator to always approve a comment without a plugin.
True
False
How do you add a shortcode?
Using the
add_shortcode function
Modifying shortcodes.xml in the theme folder
Using the the_shortcodes filter
From Settings->Writing in the admin
Which line of code would you add to your wp-config.php file to enable the WP_DEBUG feature?
define('WP_DEBUG',true);
define('WP_DEBUG_DISPLAY', false);
define('WP_DEBUG_LOG', true);
define('WP_DEBUG', false);
WordPress displays in US English by default, but is capable of being used with
all languages within North America and Asia
any language
UK, Canadian, Australian and US English
all languages that do not contain accents and
symbols
You cannot use WordPress on
Local machine
A hosted server
WordPress.com
MySpace
Which of the following is not a required file in a WordPress Theme?
style.css
index.php
sidebar.php
With default settings, what's the first step in configuring WordPress Multisite?
Download the MU version of WordPress
Set
WP_ALLOW_MULTISITE to true in wp-config.php
Browse to Tools > Create a Network in the admin
area
Change the wpmu_enabled php.ini directive to true
post, page, attachment, revision and nav_menu_item are all reserved post types?
false
true
Which is the necessary file if you need to create a child theme?
index.html
style.css
page.php
single.php
index.php
What is the name of WP_Query pagination parameter used to limit posts shown per page?
total
posts_per_page
limit
per_page
In WordPress, how do you make (1) static page the "Home Page" of your website?
Create a file "home.php" in your theme
folder.
Admin Panel of your Theme
"Settings
-> Reading -> Set Front Page"
On the Page Editor you wish to make the default
home page
In which table is a user's display_name stored?
wp_options
wp_usermeta
wp_users
What is a tag?
A WordPress-based game of Tig
A label that identifies different bloggers
A searchable
label for blog entries
A Wordpress function similar to Facebook's “poke”
What do WordPress users commonly use to skin their blogs?
Codex
Templates
Themes
Data and photos
What's the difference between WordPress.com and WordPress.org?
That's a trick question - there is no difference
they both lead to the same website.
WordPress.com
offers a free hosting service for WordPress blogs, WordPress.org offers
downloads of the free software for self hosting.
WordPress.org is a non-profit book printing service
WordPress.com is a blogging platform.
WordPress.com is a place to buy teeshirts,
WordPress.org is a free place to put your blog.
What filters out your comment and track-back spam?
WPAntiSpam
all external virus software
Akismet
WPSecurity
When WordPress is installed, it comes with which two of the following plugins?
Akismet and TinyMCE
myEASYbackup and Hello Dolly
Akismet and
Hello Dolly
Jetpack and BuddyPress
All of your uploaded photographs can be viewed from which top-level Dashboard section?
Jetpack
Media
Library
Images
Appearance
When used in a post or page, the tag [button] is an example of what?
DRY Markup
BBC
Shortcode
Textile
XML
Where can "Widgets" be found on the WP Dashboard?
All of these
Tools > Widgets
Appearance >
Widgets
Plugins > Widgets
True or false? wp_enqueue_scripts is the proper hook to use when enqueuing items that are meant to appear on the front end, but despite the name, it is used for enqueueing both scripts and styles.
False
True
A self-hosted WordPress website is totally hacker-proof.
Only if WordPress core files haven't been updated
Never
Only when wp-config.php hasn't been deleted
Only if the theme hasn't been updated
Which of the following is preferable for loading a template part other than header, sidebar, or footer?
include()
include_once()
require()
get_template_part()
include_part()
When you install a plugin, in what directory will the plugin code be stored?
wp-admin
wp-config
wp-includes
wp-content
wp-root
Where can you make functional edits to your WordPress theme without adding plugins?
functions.php
index.php
wp-install.php
wp-config.php
What is the default role for the user created during the WordPress "5-minute install" process?
Administrator
Subscriber
Contributor
Author
Editor
Which media type is not allowed to be uploaded by default in a WordPress multi-site?
bmp
jpg
gif
png
How is Wordpress licensed?
GNU General
Public License
Common Public License
Apache License
Mozilla Public License
W3C Software Notice and License
What is Akismet?
A standard spam
and comment management plugin that has been featured since WordPress 2.0
Akismet is not a plugin
Akismet does not have anything to do with WordPress
A spam and comment management plugin that must be
installed from an external source
You can export and import your blog from which Dashboard section?
Tools
Appearance
Users
Posts
Who is responsible for backing up your WordPress installation?
Automattic, Inc.
You
Matt Mullenweg
Your hosting provider
WordPress.com
What are the two parts to backing up your WordPress site?
database and
files
plugins and widgets
files and plugins
database and templates
If you want to create a custom WP loop without affecting the original query, you would use which of the following?
rewind_posts();
$wp_query = clone $temp_query;
$my_query = new
WP_Query();
$my_query = $do_not_duplicate;
True or False? WordPress plugins and themes can be only released via wordpress.org
True
False
Which WordPress function do you need to use to send users to another URL?
redirect_user
auth_redirect
redirect
send_to_url
wp_redirect
When designing for mobile devices, it is best to:
Not specify measurements because there are so many
different models and sizes
Use percentage
measurements for formatting to adjust dynamically
Use fixed measurements to accommodate the smaller
screens
A user with the level of Contributor can adjust your site settings.
False
True
Which of the following files must be deleted after installing WordPress?
None of the
above. No need to delete any files
wp-admin/install.php
installation.php
install.php
In the "Add New Post" screen, you have a choice of two editors to use. What are they?
Rich Text and Poor Text
CSS and HTML
Visual and Non-Visual
Visual and HTML
Rich Text and Code
Where can you find plugins for combating comment spam?
Official
WordPress Plugin Directory
Official Anti-Spam plugin
Official WordPress Codex
Official Norton Web Site
By default, who does not have the "edit_published_posts" capability?
Author
Contributor
Editor
Administrator
How can WordPress be hosted?
Neither of these
On the free WordPress.com platform
Both of these
On your own server
In order to extend or enhance the core functionality of a blog, which of the following might you use?
Plugins
RSS Feed
Security Software
Dashboard
To move a WordPress blog from one server to another you first need to
backup the database
backup the database and wp-config.php
backup the Wordpress directory
backup your
WordPress directory, images, plugins, and other files on your site as well as
the database
backup the wp-content directory
What is a WordPress Theme Framework?
A standard development agreement between two or
more theme developers.
A code library
or starter theme used to facilitate development of custom WordPress themes
A set of functions to identify DIV and SPAN
elements in a theme
A package of security improvements, via plugin or
embedded in a custom theme.
if ( have_posts() ) { while ( have_posts() ) { the_post(); } } This is best described as a(n):
WordPress posts
loop
Roasted loop
single.php
Incorrect code
Sidebar widget code
How do you add a function to a filter hook?
do_filter_hook
run_filter_hook
run_filters
execute_filters
add_filters
Which of the following is a good reason to delete the admin account?
For better functionality
To enhance performance
Because it is not necessary
To enhance
security
For a self hosted WordPress website, where are your pictures stored by default?
/wp-content/themes/uploads/
/wp-includes/uploads/
/wp-content/uploads/
/wp-admin/uploads/
In which table is a user's email address stored in a default WordPress installation?
wp_users
wp_options
wp_usermeta
wp_posts
This is a simple set of functions for creating macro codes that let you embed options to install a contact form, blog archive index, images, videos, or audio
Coders
Shortcuts
Sharpcodes
Shortcode API
WordPress is licensed under which of the following?
Public Forum
Copyright Matt Mullenweg
Public Domain
GPLv2
Creative Commons
WordPress is free and licensed under
GPL
GLP
LPGA
GLU
Which function should you use to retrieve the contents of a remote file?
fsockopen
fopen
file_get_contents
curl_exec
wp_remote_get
Expert WordPress users often share their insight and knowledge by publishing help articles here.
TechiesKnowItAll
WPSmarties
WPCoder
CapitalP
The Codex
Who can see password protected posts without knowing the password?
Author
Editor
Editor and Admin
None of these
Subscriber
What constant can you set to control the number of post revisions WordPress keeps?
None, you can't control the amount of post
revisions WordPress keeps.
WP_POST_REVISIONS
WPPOSTREVISIONS
POST_REVISIONS
POSTREVISIONS
What are basically defined as "a way to 'skin' your weblog."
Plugins
Filters
Tempates
Skins
Themes
If you want to be allowed to access wp-admin/maint/ what do you need to do first?
Define WP_INSTALLING somewhere in WordPress.
Edit
wp-config.php file and set WP_ALLOW_REPAIR to true
Create an empty file called .maintenance in the
webroot.
The WordPress default theme consists of the following items:
header, footer, RSS feed, comments
header, footer, plugins, comments
header, sidebar
menu, post, footer
header, footer, page number,
When adding a link to your blog, what is necessary for optimal search engine optimization and user friendly experience?
clean URL
clean content
clear concepts
clean themes
WordPress Documentation is in...
The README file.
The WordPress website.
The WordPress Forums.
The WordPress
Codex.
Which function should be used to include header.php template file?
wp_header
get_header
the_header
return_header
When displaying a URL inside an anchor tag (<a>), which function should be used to escape the URL before displaying it?
esc_url()
esc_js()
attribute_escape()
esc_attr()
esc_html()
WordPress can import from which blogging platforms?
Movable Type
b2
Tumblr
Blogger
All listed
platforms
By adding define('WP_POST_REVISIONS', 3); to your wp-config.php file, you are effectively:
Removing post revisions all together
Limiting post
revisions to the last 3
Re-enabling post revisions that a plugin has
disabled
Limiting the characters in post revisions to 3 or
less
What type of installation allows for multiple WordPress Sites/Blogs on one WordPress Installation?
Manysite
Manyblog
Multisite
Multiuser
Multiblog
Template file sidebar.php must be included in every theme
False
True
What is the safest way to customize the look and functionality of your site without losing the changes on updates?
make certain changes in core WordPress files.
create a child
theme with style.css and functions.php.
use a customization plugin.
add a special function in functions.php.
edit the theme's style.css.
WordPress allows access to a portable core. This implies
you can utilize
your public domain as well as store WP related files and directory tree in the
WP domain
you can take WP mobile to all social media sites
you can use WP from all Ethernet ports to fill your
entire weblog
you can remove the content without your clients
knowing
What is the recommended method for including the 'header.php' file within your theme's template files?
get_header()
wp_head()
get_head()
wp_header()
What function would you use to check if a plugin is currently active?
plugin_is_currently_active()
is_plugin_active()
plugin_activated()
plugin_is_active()
plugin_active()
The default user role for new user registration
Administrator
Contributor
Subscriber
Author
Editor
What feature allows you to attach additional non-standard information to posts?
RSS feeds
Permalinks
Custom Fields
Bookmarks
Pings
What is the default comment setting?
Only registered users can comment
Allow people to
post comments
Only bloggers on your blogroll can comment
Comments are not allowed
Who is eligible to contribute to the continually growing number of templates and plugins offered by WordPress?
web technicians
anyone
WP admin
pro bloggers
Does WordPress have official unit tests?
Yes
No
Only approved beta testers can install a development version of WordPress.
False
True
What is the default user role?
Editor
Contributor
Author
Subscriber
How do you change which page displays on the home page of your site?
Edit the Reading
Settings.
Make a post "Sticky."
Create a new page called "Home."
Choose a different page template.
What is the recommended method for including the 'footer.php' file within your theme's template files?
get_footer()
include 'footer.php'
wp_footer()
require 'footer.php'
Which of the following are needed to install WordPress 2.5.1?
(none of these)
Dreamweaver
web server
Plugin
The number of posts displayed on the index page is typically set via which Dashboard section?
Posts
Jetpack
Settings -> Writing
Appearance
Settings ->
Reading
This code remove_action('wp_head', 'wp_generator'); to remove WP generator meta tag. In which file should you place this code?
header.php
home.php
page.php
footer.php
functions.php
These are provided in the Plugin API and enable your plugin to call functions at specific times during the loading of WP.
pegs
auto loaders
hooks
references
Under WordPress Coding Standards, you should NEVER use shorthand PHP start tags and always use full PHP tags.
False
True
"attachment" is a post type?
true
false
What argument do you pass to WP_Query to limit the number of posts shown on each page?
posts_per_page
showposts
numberposts
post_limit
What constant can you set to true to display PHP errors & warnings?
None, you can't control error reporting with
WordPress.
WP_DEBUG_OUTPUT
WP{DEBUG}
WP_DEBUG
DEBUG
It is possible to change wp-admin with the help of .htaccess file.
No
Yes
WordPress admin URL is hard coded, you can't change
it.
How to run shortcode in your theme file?
run_shortcode
none of these
exec_shortcode
do_shortcode()
all
One of the following is NOT a pluggable function
wp_verify_nonce()
wp_set_auth_cookie()
None. All of
them are pluggable.
wp_validate_auth_cookie()
wp_redirect()
Which WP function is used to know the log status of current user?
is_user_logged_in()
wp_user_logged_in()
What function would you use to check if a plugin is inactive?
plugin_is_inactive()
plugin_inactivated()
plugin_exists()
plugin_inactive()
is_plugin_inactive()
Securing the wp-admin/ directory might break some WordPress functionality, such as the AJAX handler at wp-admin/admin-ajax.php.
False
True
Which of the following will execute a MySQL query against the WordPress database?
mysqli_query()
mysql_query()
PDO::query()
$wpdb->query()
PDO::exec()
What is the name of the WYSIWYG editor used in WordPress?
TinyMCE
WP-editIt
WPedit
TCEditor
When using translatable text strings in a JavaScript file, which function localizes those strings for the JavaScript file?
wp_send_script_translations();
wp_l10n_script();
wp_i18n_script();
wp_localize_script();
wp_translate_script();
An introduction to your full blog posts is called a(n):
Intro
Snippet
Excerpt
Blurb
An AJAX action registered within WordPress can be accessed directly without performing a JavaScript-driven AJAX call.
False
True
is_single is used to get which of the following?
The Category
The Index
The Page
The post
The Tag
Name the first file (or files) that you need to create to make a child theme:
functions.php and style.css
style.css and functions.php and header.php
style.css
functions.php
header.php
When another site links to your article, you receive a notification in your dashboard called a:
You don't receive a notification
Ping Notification
Hotlink Alert
Trackback/Pingback
What function will you use to localize or pass data to script files?
wp_localize_script()
wp_translate_script()
wp_script_localize()
wp_i18n_script()
wp_enqueue_script_i18n()
Since WordPress 2.7.0 you can perform HTTP GET and POST requests with the following methods
You can't do HTTP requests with WordPress
wp_http_remote($method, $arg)
wp_remote_post,
wp_remote_get
wp_httpapi_remote($method, $arg)
If a theme is not acting as anticipated after loading a plugin, what should you do?
Use function_exists
Upgrade the
plugin or deactivate it
Check the plugin panel
Remove WordPress recent upgrades
When we talk about "Post Tags" in WordPress what do we mean?
Keywords that
classify concepts within the content
Tags added to your theme via the editor after the
theme is installed.
A structural element in any markup language
Shortcodes
Valid XML/HTML Markup styles with CSS
Where is the Wordpress repository stored?
Bazaar
Mercurial
SVN
Git
CSV
What is the function that check if the user is logged in?
user_logged_in_status()
is_user_logged_in()
wp_user_logged_in()
wp_user_status()
use_logged_in()
Which global object should you use if you'd like to interact with the WordPress database directly?
$mysql
$wpdb
$wp_database
$db
$mysql_obj
What function do you use to programmatically update a post?
update-post
update_post
wp_update_post
wp-update-post
None, you can't programmatically update a post in
WordPress.
What is the WordPress plugin and themes repository build on?
SVN
Mercurial
Git
WordPress gives you the ability to theme the way attachments are displayed by adding MIME_type.php files to your theme.
True
False, this was never a feature
False, this is still being developed
False, this was deprecated >=3.0
How do you turn on debugging in WordPress?
Save a file called .maintenance in the root of your
WordPress installation.
Install and activate the WordPress Debugger plugin.
Go to Dashboard > Settings > Debugging, click
on "Yes" radio button.
Define WP_DEBUG constant as true in functions.php.
Define WP_DEBUG
constant as true in wp-config.php.
What should you write in PHP comments in the head of a file to declare a custom page template in a WordPress theme?
Name:
Page Template:
Template:
Description:
Template Name:
At a very minimum, a WordPress Child Theme consists of which files?
index.php and functions.php
style.css
loop.php and style.css
functions.php and style.css
Which of these parameters does update_post_meta() accept?
$meta_value
$prev_value
all of these
$post_id
$meta_key
Is the following statement True or False: Pages do not use tags or categories.
False
True
Which function will return the filesystem path of a given plugin?
plugin_basename();
plugin_dir_path();
plugins_dir_url();
realpath();
plugins_url();
Given the following line of code: remove_filter( 'the_content', 'capital_P_dangit', 11 ) what does the third argument (11) mean?
The priority of
the function (as defined by the original hooked function)
A custom, arbitrary numeric ID (like a 'cache
buster')
Times this filter should run
What is the correct function for registering custom taxonomies?
new_custom_taxonomy()
register_taxonomy()
new_taxonomy()
register_custom_taxonomy()
Which function is used to add a custom taxonomy?
None of these
custom_taxonomy
custom_register_taxonomy
register_taxonomy
Who supports, maintains, and updates the WordPress core code available on WordPress.org?
WordPress LLC
WordPress.com
37 Signals
The WordPress
community
ThemeForest
You can create a custom post type:
Through the function new_post_type()
Through the
function register_post_type()
You can't
Through the function wp_new_post_type()
Through the function custom_post_type()
Where in a theme do we define the theme's author name?
In theme's index.php file
In theme's header.php file
In config.php
In Appearance setting page
In theme's
style.css file
What does the "RPC" in name "XML-RPC" stand for? ("XML-RPC" is used by WordPress to connect to external resources such as a mobile WordPress application)
Restore Post Content
Remote Procedure
Call
Retrieve Post Content
Retrieve Posts Collection
What is the proper way to determine the local path to your plugin files?
plugin_dir_path()
site_url()
plugins_url()
bloginfo('plugins')
Will your WordPress blog have the same visual styling as the administration panel?
No
Only if an option for it is checked off during
registration
Only if the back-end code is edited to allow it
Yes
Which wp-config.php constant defines the path for your content folder?
WP_DIR
WP_CONTENT_DIR
WP_CONTENT_URL
WP_PLUGINS_DIR
What is the best way to add plugin functionality to a theme template without breaking the theme if the plugin is not installed? (Example plugin: Foo)
<?php (get_plugin('foo')) { foo(); } ?>
<?php (if_exist_foo()) { foo(); } ?>
<?php
if(function_exists('foo')) { foo(); } ?>
<?php (get_plugin_foo); ?>
Which of the following are used to create "The WordPress Loop" that displays posts on a page?
have_posts() and
the_post()
have_posts() and the_content()
start_loop() and rewind_loop()
get_header() and get_footer()
Which template tag should you use to output the post title inside the loop?
the_heading
the_post_heading
the_page_title
the_post_title
the_title
How can you include a js file in a WP theme file?
wp_Init_script(), wp_add_script()
wp_init_register_script(), enque_script()
register_script(), enque_script()
wp_register_script(),
wp_enque_script
wp_add_script(), wp_init_script()
This function allows quick publishing with a web browser bookmarklet. You can create a post by quoting some text, images, and videos on any web page.
Press Press
Press That
Press All
Press This
The code that displays post or page title inside a loop in your template is:
title();
wp_title();
the_title();
wp-title();
WordPress stores the password in plain text in the database.
Only if WP_INSECURE_PASSWORDS is set to true in
wp-config.php
False
True
What is the preferred way to programmatically make an HTTP API GET request from within WordPress?
_get
remote_get
None, you can't make an HTTP API GET request from
within WordPress.
wp_remote_get
cURL
This function destroys the previous query used on a custom Loop.
wp_delete_query();
wp_remove_query();
wp_reset_query();
wp_destroy_query();
What functions are used to safely add a style file to wordpress generated page?
wp_add_inline_style() and wp_register_style()
add_editor_style() and wp_enqueue_style()
wp_register_style()
and wp_enqueue_style()
add_safe_style() and enqueue_safe_style()
wp_register_css() and wp_enqueue_css()
Which constant can you set in wp-config.php to limit the allowed memory for WordPress?
WP_LIMIT_MEMORY
WP_MEMORY_LIMIT
MEMORY_LIMIT
ALLOWED_MEMORY_LIMIT
What file doesn't contain the current WordPress version?
wp-includes/js/l10n.js
readme.html
wp-includes/version.php
WordPress has a function called zeroise() which adds leading zeroes to numbers. So, zeroise(1, 3) will give 001 and zeroise(1, 2) will give 01 and so on.
FALSE
TRUE
What is used to get values from custom fields
get_meta_value
post_meta_value
the_post_metas
get_post_meta
the_post_meta
What is the recommended method of linking JavaScript to a WordPress generated page.
wp_print_scripts()
wp_localize_script()
wp_enqueue_script()
wp_add_script()
What is bbPress?
A photo gallery plugin for WordPress.
A social networking plugin for WordPress.
A forums plugin
for WordPress.
A wiki plugin for WordPress.
An arcade plugin for WordPress.
What is BuddyPress?
A chat plugin for WordPress.
An email newsletter plugin for WordPress.
A social
networking plugin for WordPress.
A forums plugin for WordPress.
A photo gallery plugin for WordPress.
Which function is use for create custom post type ?
custom_post_register()
register_post()
wp_custom_post()
register_post_type()
Pages do not use tags or categories
True
False
What Filter Hook is used to modify the output of the_content()?
publish_post
page_content
the_body
the_content
post_content
The excerpt can be customized:
Adding a
function in current theme
Never
Editing wp-admin/post.php
Which WordPress function should you use to add a "rel='nofollow'" attribute to any <a> link in an HTML string?
wp_rel_nofollow
wp_rel_escape
nofollow_html
escape_no_follow
What class is used for all database manipulations?
WP
Database_Delta
Query
wpdb
WP_Query
WordPress stores your uploads by default following which folder structure?
wp-includes/uploads/[year]/[month]/[day]/[filename.extension]
wp-content/uploads/[year]/[month]/[filename.extension]
wp-content/uploads/[filename.extension]
wp-includes/uploads/[year]/[month]/[filename.extension]
Which of these is NOT a core post type?
Page
Attachment
Post
Events
(all of these are NOT core post types)
How can one determine the post format of the current post in the loop?
is_post_format
has_post_format
get_post_format
get_post_status
How does Wordpress discover the version of a plugin?
By reading a config.json file located in the plugin
folder
By reading the
standard plugin header in the main plugin php file
By reading the plugin readme text file
By reading the wp-config.php file
By making an api call to a centralized plugin
server
Which function do you use to enable featured image in WordPress?
add_template_support('post-thumbnails');
add_theme_support('post');
add_theme_support('post-thumbnails');
set_theme_support('post');
set_template_support('thumbnails');
The function the_excerpt() can be used anywhere in your WordPress theme.
Only when you set the second parameter to true
Only within the
posts loop
True
No such function exists
In a standard single installation of WordPress, which sub-menu should you use to change your site's registration options?
Privacy
Reading
Discussion
General
When using classes, what visibility level is needed in order for WordPress to call your functions after being hooked into an action?
Public
Pass by Reference
Doesn't matter.
Private
To remove all the html tags from a string, so that only plain text is left, you'd rather
write my own function
wp_strip_all_tags()
wp_html_excerpt(false)
wp_html_to_txt()
True or False: update_post_meta can be used in place of add_post_meta.
true
false
In what order does blog content appear on a WordPress blog by default?
Reverse
chronological order
Ranked by popularity
Ordered by the author
Oldest first
How can you make your custom function my_function() pluggable?
By defining $pluggable = true
By registering the function via the make_pluggable
filter
By checking
function_exists('my_function') before defining the function
Custom functions can't be made pluggable
Which file do you need to change in order to modify the post template?
archive.php
article.php
post.php
page.php
single.php
Making alterations to WordPress core files is
The best way to extend functionality
Highly
discouraged
Highly recommended
Illegal
which function is use for display usermeta information ?
get_meta()
user_meta_info()
wp_get_user_meta()
get_user_meta()
In order to remove a .css file that is loaded by a plugin, which function is going to be used inside the theme's functions.php file?
wp_deregister_style()
wp_deregister_script()
wp_dequeue_script()
wp_deregister_css()
Which function returns a search form?
get_template_part('search_form');
output_search_form();
display_search_form();
wp_search_form();
get_search_form();
What must happen to correctly localize a JS file in the WordPress API? The external file is a JS script, and it has multiple strings that require translation.
the translated strings must be assigned to a
javascript object to avoid name-space conflicts, and the external scripts must
reference the included objects' strings.
the translations must be passed to
wp_localize_script()
the script handle that wp_localize_script('handle')
references must be registered
all of the
answers are correct
If you want to retrieve the current user's last name you'll use
get_user_last_name( $current_user->ID )
get_user( $current_user->ID )->last_name
get_user_meta(
$current_user->ID, 'last_name', true );
To change the output of text for use on the front end or for saving to the database, which kind of hook would you use?
api
filter
action
The WordPress Codex is editable by:
Only volunteers with over 2 years of experience
Only Matt Mullenweg
Only Automattic, Inc.
Only the Core Developers
Anyone
In wp_redirect( $one, $two ), $one is the URL you're going to redirect to, while $two is ___
HTTP redirection
status code
Seconds to wait before redirection
User ID (if already logged in)
Can you disable posts revisions?
Yes, with define('WP_POST_REVISIONS', 0 );
Yes, with
define('WP_POST_REVISIONS', false );
Yes, with define('POST_REVISIONS', false );
No, you can only set how many revisions will be
stored.
Which WordPress conditional tag is used to check if the current query is the main query for the current screen being displayed?
is_main_query();
is_parent_query();
is_top_query();
is_current_query();
Which code is used to enable Featured image option in WordPress?
the_post_thumbnail();
set_post_thumbnail();
add_theme_support(
'post-thumbnails' );
The get_query_var() function is used to:
Retrieve
variable in the WP_Query class of the global $wp_query object.
To get the $wp_query object instead of using
directly the global object.
Retrieve a previously generated rewrite query var
from the wp_options table.
CVE’s are routinely published by WordPress. CVE stands for:
Custom Vulnerabilities and Experiments
Custom Variants and Exposures
Common Variants and Exposures
Common
Vulnerabilities and Exposures
While running through the WordPress Loop, which action can be used to display content before each post in The Loop?
current_post
the_post
wp_post
wp_the_post
the_current_post
Using is_archive() will return true on:
Category, Tag,
Author and Date listings
Category, Tag, Author listings
Category, Author and Date listings
Category and Tag listings
Date listings
Which of the listed functions would you use to get the value of a Custom Field?
the_post_meta
get_post_custom_field
the_post_custom_field
get_post_meta
get_custom_field_value
You can move the wp-content folder elsewhere adding _____ in wp-config.php
define( 'DEFAULT_WP_CONTENT', [new_content_path] );
define( NEW_'WP_CONTENT', [new_content_path] );
define(
'WP_CONTENT_DIR', [new_content_path] );
define( 'WP_CONTENT', [new_content_path] );
define( SITE_'WP_CONTENT', [new_content_path] );
What is the proper order of parameters that get_the_post_thumbnail() accepts?
$post_id, $attr, $size
$size, $post_id, $attr
$size, $attr
$post_id, $size,
$attr
How to retrieve single variable from database?
$wpdb->get_singlevar($query)
$wpdb->query($query)
$wpdb->get_var($query)
$wpdb->get_results($query)
What is proper way to load a PHP file into a template (other than header, sidebar, footer)?
include_template_part
get_template_part
include_once
load_template_part
include
How would you properly escape the following scenario: <a href="<?php echo $url ?>"
echo attribute_escape( $url )
echo esc_url(
$url )
echo esc_html( $url )
echo esc_attr( $url )
JavaScript strings should be translated by using?
wp_localize_script
wp_translate_script
wp_localize_javascript
wp_script_translation
The portion of a theme file that displays your posts is called:
The Post
Get Pages
The Loop
The Query
Which of the following is not a Conditional Tag?
is_home()
is_admin()
is_blog()
is_page()
Which function returns the ID of a featured image?
featured_image_id()
get_post_thumbnail_id()
get_the_post_thumbnail()
get_featured_image_id()
Writing local files to the filesystem to be done securely with the
Filesystem API
Transients API
Widgets API
Rewrite API
How do you set the language of your Wordpress instance?
You can not set the language
On the Settings tab in Dashboard, under General
Set the language
in the wp-config.php file
On the Settings tab in Dashboard, under Reading
Which one of these is NOT a supported post format?
Gallery
Log
Link
Status
Aside
The bookmarklet included in WordPress for publishing to your site while browsing the web is called:
Press This
Blog This
Publish This
Post This
What is the name of the API bundled into WordPress core to handle the construction and management of widgets?
WP_Widget
WPWidgets
WP_Widget_API
Which of the following directs to themes folder?
blog('theme-directory')
bloginfo('theme_directory')
bloginfo('template_directory')
blog('template-directory')
blog('theme_directory')
What is the conditional function to check if you're in the main WordPress query?
is_main_query()
is_query_main()
is_global_loop()
is_global_query()
is_main_loop()
What file can you use in your theme to create a custom search form?
search.php
get_search_form.php
searchform.php
How to add multiple headers in your theme ?
by adding
duplicate of header file like header-1.php and assign in template like
get_header("1");
write your header content in your template file.
its not possible
What is the query variable that holds the current page number to control page navigation?
pg
p
paged
page
page_num
What function creates a custom sidebar in your theme?
add_theme_support( 'sidebars')
wp_register_sidebars()
register_widget_area()
register_sidebar()
wp_register_widget_area()
What do we need to do in order to create a widget?
To make use of the the_widget($widget, $instance,
$args); function
To make our custom class and use
register_activation_hook( __FILE__, array( 'MyPlugin', 'install' ) );
To extend the
WP_Widget class WP_Widget class and some of its functions
Which function should a plugin use in order to echo a string to the browser and make it translatable?
echo_translatable('string');
_out('string');
printf('string', array(translatable: true ));
echo('string', 'translatable');
_e( 'string',
'text-domain' );
Is it required that the current theme's stylesheet be loaded inside the "header.php" template file within the theme?
Yes, the "style.css" file must always be
loaded inside "header.php"
No, it can be
loaded via "functions.php" as well
Which file would you create/modify in your theme to customize a search form?
searchform.php
generic-form.php
search-form.php
search.php
search_template.php
Which query argument represents the requested page number?
page
pagenum
page_n
paged
p
Which of the following can be used to include a file named 'showcase.php' in your theme?
wp_template( 'showcase' )
get_template_part(
'showcase' );
wp_include_file( 'showcase', true );
wp_get_template( 'showcase' );
get_showcase();
How do you enable a WordPress Multisite network?
by adding define('WP_ALLOW_MULTISITE', true); to
.htaccess
by adding define('ALLOW_MULTISITE', true); to
wp-config.php
by adding define('WP_MULTISITE', true); to
wp-config.php
by adding define('WP_ALLOW_MULTISITE', true); to
functions.php
by adding
define('WP_ALLOW_MULTISITE', true); to wp-config.php
Which functions check if a post has featured image?
has_post_thumbnail(
$post_id );
post_thumbnail( $post_id );
had_post_thumbnail( $post_id );
the_post_thumbnail( $post_id );
have_post_thumbnail( $post_id );
Shortcode styles are retained when you switch to a theme that does not use shortcodes.
True
False
Brute Force Attack is a dangerous security threat. It is an attack on the weakest link in any website's security. Which of the following best describes its actions?
Takes advantage of poor file permissions.
Tries usernames
and passwords, over and over again, until it gets in.
Takes advantage of vulnerabilities in the server.
Attacks the WordPress database by SQL injection.
Takes advantage of vulnerabilities in WordPress
versions.
The do_action() function is used to
Enqueue Actions
Fire action
Create new actions
Delete actions
How can you enable WP multisite support in wp-config.php?
define('WP_ALLOW_MULTISITE',
true)
define('WP_MULTISITE', true)
define('WP_MULTISITE_SUPPORT', true)
define('WP_MULTISITE_ALLOW', true)
You want to customize the Loop on your static home page. Which conditional tag do you use?
is_front_page();
is_home();
If you want to retrieve specific WordPress site users you'll use
get_users()
get_users_query()
the_users()
query_users()
wp_users()
The functions.php file is required in a theme?
true
false
What conditional statement would you use for custom post types?
If (is_post_type_archive('book')) { }
If (is_singular('book')) { }
if ( 'book' ==
get_post_type() ) { }
If (is_page('book')) { }
Which function does WordPress use to remove certain HTML text and attributes from user input?
stip_unallowed_tags
strip_tags
wp_clean_text
wp_kses
Which function makes sure that only certain HTML tags are allowed, if present, in a given string of text?
wp_kses();
clean_tags();
restrict_html();
format();
In which table does WordPress store Custom Fields?
wp_postmeta
wp_custom
wp_comments
wp_posts
wp_meta
The functions.php file must be created for every theme you develop?
False
True
The function you use to access a WordPress site option is:
site_option()
wp_option()
get_option()
the_option()
get_the_option()
How do you correctly register the shortcode to call this function: function ppp_shortcode() { echo "some code or stuff here"; }
do_shortcode('shortcode', 'ppp_shortcode');
add_shortcode('shortcode',
'ppp_shortcode');
shortcode('shortcode', 'ppp_shortcode');
register_shortcode('shortcode', 'ppp_shortcode');
wp_shortcode('shortcode', 'ppp_shortcode');
When displaying posts on your blog's homepage, if WordPress cannot find a matching template file, what theme file is used?
index.php
page.php
home.php
single.php
archive.php
The get_option and update_option functions will serialize and unserialize arrays and objects automatically.
True
False
Only if the third argument is set to true.
Using bloginfo() without a parameter will default to?
bloginfo('name')
bloginfo('url')
bloginfo('description')
bloginfo('template_url')
What is the name of the function allowing you to register your own shortcode?
do_shortcode()
register_shortcode()
wp_add_shortcode()
add_shortcode()
For normal WordPress operations, the MySQL database user needs the following privileges
INSERT and UPDATE
SELECT, INSERT, UPDATE, DELETE, DROP, ALTER and
GRANT
DROP, ALTER and GRANT
SELECT, INSERT,
UPDATE and DELETE.
"Just another WordPress blog" is a _____, and can be edited via the ______ Dashboard section.
Title; Appearance
Title; Settings -> General
Tagline; Appearance
Tagline;
Settings -> General
Tagline; Settings -> Reading
Which of the following manually defines your WordPress address (URL)?
define('WP_SITEURL',
'http://example.com/wordpress');
define('WP_SITE', 'http://example.com/wordpress');
define('URL', 'http://example.com/wordpress');
define('WP_URL', 'http://example.com/wordpress');
define('SITEURL', 'http://example.com/wordpress');
Which step isn't a part of installing WordPress multisite?
Editing your wp-config.php file to declare the
install as multisite
Creating a directory for media file uploads
Modifying your .htaccess file with new values
Manually adding
a blogs table to your database
How do you add content that you want to appear outside of the normal blog flow?
Use the Wordpress Content Manager
Use a Page
Edit the content map
"Pin" the content to the sidebar
Which function is used to strip all shortcodes from a given string of text?
strip_shortcodes();
remove_all_shortcodes();
remove_shortcodes();
strip_all_shortcodes();
What does wp_filter_kses() function do?
Sanitize content
with allowed HTML rules.
Verifies for security issues.
Filters script tags from the given content.
Search the content for PHP code and filters it.
Converts old actions from the ancient KSeS CMS
platform to the new WordPress Hooks. Some libraries of WordPress inherits KSeS
code.
What function do you use to register a new custom image size?
new_custom_image_size();
new_post_thumbnail_size();
set_post_thumbnail_size();
add_image_size();
What does the following line do? add_filter('show_admin_bar', '__return_false');
Hides the admin
bar for every user.
It generates an error.
Hides the admin bar for the administrators only.
Hides the admin bar for every user, except
administrators.
What is the purpose of a nonce?
Escape PHP variables
Debug code
Sanitize database inputs
Add a security
check
Pingbacks in Wordpress do not send any content
False
True
What function do you use to add core functionality to a post type?
add_post_type_support()
add_support_post_type()
post_type_supports()
add_support_type()
new_support_for_post_type()
You can overwrite the siteurl option in wp-config.php with:
define('SITE_URL', '[url]');
define('SITEURL', '[url]');
define('WP_SITE_URL', '[url]');
define('WP_SITEURL',
'[url]');
define('DEFAULT_URL', '[url]');
What function allows you to switch between blogs on your installed WordPress network?
switch_install();
get_blog();
switch_to_blog();
the_new_blog();
How do you delete the "uncategorized" category?
In the blog’s dashboard, navigate to your
categories and choose delete.
In the blog's
dashboard, change the default category for new posts, then delete the "Uncategorized"
entry.
In the global dashboard, navigate to your
categories and choose delete.
Unassign any posts assigned to the uncategoriezed
category, then delete it
What is the name of the filter for adding a CSS class to a post?
post_class
the_post_class
content_class
body_class
Which capability should you check against to find out whether the current user can publish posts?
edit_posts
editor
edit_published_posts
publish_posts
level_7
If you create a custom form with an email field, you can check if the submitted email is valid using the following WordPress function
validate_email()
is_email_valid()
check_email()
is_email()
Which one of the following is NOT a WordPress-generated CSS Class?
.alignright
.wp-caption
.alignleft
.alignmiddle
Which function do you use to sanitize a generic text field for saving in the database?
capital_P_dangit();
esc_url();
wp_strip_all_tags();
esc_attr();
sanitize_text_field();
Which action would you use to show additional fields in WordPress registration form?
wp_login
register_post
user_register
edit_user_profile
register_form
The following license can be obtained by the blog owner to specify what content can and cannot be taken from the site:
Content Clearance
Core Clearance
Count Commerce
Creative Commons
In what directory can the WPLANG .mo file reside?
In 'wp-includes/languages' directory
All of these.
In 'wp-content/languages' directory
As defined by WP_LANG_DIR constant
Which function would you use to make WordPress crunch images into an additional size?
add_image_size
add_image_dimensions
add_image_type
add_image
add_thumbnail_size
What is the Transients API used for?
Storing User data
Storing cached
data temporarily
Processing language translation
Displaying Posts in The Loop
Managing Settings forms
What WordPress function allows you to make PHP variables available to enqueued javascript files?
wp_print_script_vars()
wp_localize_script()
wp_enqueue_script_vars()
wp_localize_ajax()
What is the difference between the functions __() and _e()?
__() translates a string and _e() returns a string
__() echoes a string and _e() returns a string
__() returns a
string and _e() echoes a string
__() echoes a string and _e() translates a string
If you need to save data in WordPress for a limited amount of time, what is the best way to do this?
Options API
Pseudo Cron API
Transient API
Database API
HTTP API
What does get_post_type_object() return if the post type doesn't exist?
null
'Warning warning warning!'
Nothing
A WP_Error object
Sidebars should be added on the ____ hook.
admin_init
plugins_loaded
wp_loaded
init
Which of the following is the correct template hierarchy for a page query?
page-$slug.php
-> page-$id.php -> page.php -> index.php
page-$slug.php -> page-$id.php -> single.php
page-$id.php -> page-$slug.php -> index.php
-> single.php
page-$slug.php -> page-$id.php -> page.php
What is a "pluggable function"?
A function placed in wp-includes/pluggable.php that
can be overridden if you create the pluggable.php file
A function placed in wp-includes/pluggable.php that
can be removed only with a plugin.
A function that can only be used by plugins
A function
placed in wp-includes/pluggable.php that let you override certain core
functions via plugins
How do you call an instance of TinyMCE content editor in the admin?
new_wp_editor()
the_editor()
tiny_mce()
new_editor()
wp_editor()
What function would you use to retrieve a remote API using the http GET method?
wp_api_get()
wp_remote_post()
wp_remote_get()
wp_curl()
get_remote_request()
What filter customizes the admin footer text ?
add_filter('admin_footer_text',
'your-function');
add_filter('admin_footer', 'your-function');
add_filter('footer_text', 'your-function');
Which hook should you use to add a script to your plugin admin page?
admin_print_scripts-$page
wp_print_styles
wp_enqueue_scripts
wp_print_scripts
admin_enqueue_scripts
WordPress locks you into it's current version for jQuery.
True
False
You can edit the core jQuery file to update it.
You have to use a plugin.
Which WordPress function can you use to check whether a string is a valid e-mail address?
preg_match
is_email
is_valid_email
is_string_valid_email
How would you add support for Post Formats to a post type?
add_post_type_support(
$post-type,$post-format);
wp_post_format_support( $post-format,$post-type);
wp_support_post_format($post-format);
add_post_type_support( $post-format,$post-type);
What is the function to check if a user has a capability?
current_user_cap()
user_has_cap()
current_can()
user_can()
What WordPress function allows you to check users capabilities?
get_user_to_edit()
current_user_can()
get_editable_roles()
get_user_cap()
How would you hook a static method 'do_this' of a class 'MyClass' to the init action?
add_action('init', array($this, 'do_this');
add_action('do_this', 'MyAction', 'init');
add_action('init',
array('MyClass', 'do_this');
add_action('init', MyAction->do_this());
You can't hook static methods
Which filter will you use to change the default 'Thank you for creating with WordPress' footer text in wp-admin ?
update_footer
admin_footer_text
wp_admin_footer
wp_footer
admin_footer
which function is use for add custom meta box ?
wp_custom_meta_box()
custom_meta_box()
add_meta_box()
add_custom_metabox()
Which of these methods is used to add capabilities to a user role object?
cap_add()
wp_add_cap()
wp_cap()
add_cap()
If I have a long passage that I want to trim to 40 words, I can use the WordPress function
wp_trim_words(
$text, 40 );
There is no such function in WordPress, you have to
write your own
wp_excerpt_by_words($text, 40);
When using the function, add_image_size(), what parameter is required?
name
height
width
crop
What function do you use to return the current post's featured image for use in variables?
get_featured_image();
get_the_post_thumbnail();
get_wp_featured_image();
wp_featured_image();
the_post_thumbnail();
This function gets the URL of the author page for the author using a given ID.
get_the_author_link( $author_id, $author_nicename )
get_author_posts_url(
$author_id, $author_nicename )
grab_author_posts_url( $author_id, $author_nicename
)
What does the dynamic_sidebar() function do?
Nothing
Outputs a sidebar on the left or right, depending
on the layout settings
Creates a JavaScript dynamic object, that
represents a sidebar
Outputs all the
widgets of a given sidebar
To create a child theme, which line is required in addition to the default WordPress theme headers (style.css)?
Template:
directory-of-parent
parent-theme: directory-of-parent
template: directory-of-parent
parent: directory-of-parent
What will get_post_meta($post_id, $key) return?
Boolean (true or false) if the post has a custom
field $key
The meta id of the custom field
An array of the
custom fields
A single result, as a string of the custom field
What line is required to set a theme to be the child of another theme within the child theme's .css header?
Template:
Child Of:
Get Theme:
Theme Name:
Set Parent Theme:
How to retrieve current user ID?
get_user_id()
get_current_user_id()
current_user_id()
get_current_user( 'ID' )
user_id()
wp_redirect() does not exit automatically and should almost always be followed by exit.
False
True
The the_post() method in the WP_Query class sets up which global variable?
$query
$the_post
$wp_query
$page
$post
How do you register a WordPress custom nav menu?
register_nav_menu()
wp_register_nav_menu()
add_theme_support( 'wp_nav_menus')
wp_nav_menu()
add_theme_support( 'nav_menus')
How do you use the WP_Widget class to create a new widget?
WP_Widget =>init
foreach( $My_Widget as $WP_Widget)
My_Widget
extends WP_Widget
My_Widget = new WP_Widget
WP_Widget = $this->New_Widget
In the WordPress template hierarchy which template would be used first on a specific category archive page
{category-name}-category.php
category-{category-name}.php
category.php
index.php
archive.php
Which of the following embeds a YouTube video?
Neither way is correct.
http://www.youtube.com/watch?v=dQw4w9WgXcQ
[embed]http://www.youtube.com/watch?v=dQw4w9WgXcQ[/embed]
Both ways are
correct.
Which is the correct order of parameters?
register_taxonomy( $args, $object_type, $taxonomy
);
register_taxonomy(
$taxonomy, $object_type, $args );
register_taxonomy( $taxonomy, $args, $object_type
);
register_taxonomy( $taxonomy, $args );
Where can you see available WordPress, theme, and plugin options as they are recorded in the database?
Browse to
wp-admin/options.php
Check view all under options - reading
Go to Options, see all
You can't, the options are divided into sub menus
A rewrite change will not be affected until:
site restarted
rewrite flushed
edit .htaccess file
plugin updated
relogin
When you want to view all of the stored data in the $wpdb->prefix.'options' table, you would:
Edit your .htaccess file to allow this
View the "General" tab under the Settings
menu
Enable "View All" mode via wp-config.php
Append
"options.php" to the end of your default admin URL
While developing themes , writing " @package WordPress " in head comment section of the file is correct.
Yes
No
Why use wp_enqueue_scripts in wordpress?
Scripts from a single action hook
make a hook for new php script class
styles from a single action hook
None
Scripts and
styles from a single action hook
Using user_can() function, which capability will determine an administrator?
delete_posts
delete_published_posts
delete_users
upload_files
Which of the following functions should be used to escape a URL before storing it in the database?
esc_database_url()
esc_url_raw()
esc_url()
esc_mysql_url()
Which escaping function would you use to store a clean URL in the database?
esc_url()
esc_attr()
esc_sql()
esc_url_for_database()
esc_url_raw()
What is the last parameter (4) indicate? add_action('some_action', 'my_function', 10, 4);
The priority of hooking
The number of
variables passed from the action or filter hook to the hooked function
The number of return values
The number of times the hook will be called
Which action occurs when a post is saved?
store_post
post_save
post_update
commit_post
save_post
What is the correct way of checking if a theme supports a certain capability?
current_theme_supports('feature')
the_theme_supports('feature')
theme_supports('feature')
To ensure all plugins have been loaded before performing an action, which WordPress hook should the action be added to?
after_plugins_loaded
after_setup_theme
plugins_loaded
wp
init
Which hook is triggered when a new post is published?
post_init
post_ publish
None of these
publish_post
How to get current user ?
wp_get_current_user();
user()
wp_current_user()
get_user()
The "page-{id}.php" comes before "page-{slug}.php" in the template hierarchy for a page.
True
False
The function ______ displays the Featured Image (previously called Post Thumbnails) for the current post, as set in that post's edit screen.
the_post_thumb()
get_the_post_thumbnail()
the_post_thumbnail()
has_post_thumbnail()
post_thumbnail()
When loading a page, which of the following template file names will WordPress look for first?
page-{slug}.php
page.php
page-{id}.php
index.php
Which file (if it exists) controls the look of your index page if the Reading Settings are set to use a static page for the blog?
archive.php
index.php
page.php
front-page.php
single.php
If is_admin returns true, you are logged in as an administrator?
false
true
What function do you use to flush rewrite rules?
flush_rewrite_rules();
remove_rewrite_rules();
rewrite_flush();
delete_rewrite_rules();
What does the is_admin() conditional function do?
Returns true if the current user is an
Administrator
Neither of these
Returns true if
the current page is an admin page
True or False: The function is_admin() checks if the current logged in user is the Administrator.
False
True
Where do deprecated Template Tags, Conditional Tags and Include Tags go before they die?
wp-admin/includes/deprecated.php
wp-admin/deprecated.php
wp-admin/includes/ms-deprecated.php
wp-includes/deprecated.php
wp-includes/deprecated-functions.php
Which feature allows users to edit their theme in realtime?
Theme Customizer
Theme Editor
Custom Header
Widgets
What function would you use to enqueue a script in the back-end of WordPress?
admin_enqueue_scripts()
is_admin_enqueue_scripts()
function_enqueue_scripts()
wp_enqueue_scripts()
If you add define( 'UPLOADS', $path ) to wp-config.php, $path is:
path relative to
ABSPATH
path relative to wp-config.php
absolute server path
How do you hide a WordPress Version number for the Website user/visitor?
remove_action('wp_head',
'wp_generator');
remove_action('wp_head', 'wp_version');
remove_action('wp_head', 'wp_version_generator');
What do you use to remove the WordPress version number from the meta tags?
remove_action('init', 'wp_version_number');
remove_action('init', 'wp_generator');
remove_action('wp_head', 'wp_version_number');
You can't.
remove_action('wp_head',
'wp_generator');
In wordpress which function is used for checking that the front URL contains https?
is_url_sll()
is_ssl()
is_ssl_uri();
is_front_ssl()
is_ssl_enable()
Which of the following is the default update service (which notifies a third party site whenever a new post is published) from WordPress 2.5.1 onwards?
http://ping.feedburner.com
None of these
http://rpc.weblogs.com/RPC2
http://www.blogoole.com/ping/
http://rpc.pingomatic.com/
How do you get all meta fields from a post?
$metas = the_post_meta( $post->ID );
$metas = get_post_meta( $post->ID, 'all' );
$metas =
get_post_meta( $post->ID );
$metas = get_meta_post( $post->ID );
$metas = get_post_meta( $post->ID, true );
By default, which database table stores your user account privileges?
wp_permissions
wp_usermeta
wp_login
wp_users
wp_privileges
What is the correct way to retrieve the theme's style.css file URL?
get_template_directory()
get_stylesheet_directory_uri()
get_stylesheet_uri()
get_stylesheet_directory()
get_template_directory_uri()
What is the name of the ticketing and bug reporting system that WordPress uses.
BugZilla
YouTrack
IRC
Redmine
Trac
What would the following snippet of code do? add_filter('pre_site_transient_update_core', create_function( '$a', "return null;" ));
Return a WordPress error
Nothing, as $a is not defined
Remove the "Howdy, <NAME>" message
Update your installation to the latest version
Hide WordPress
upgrade notices
A WordPress multisite installation allows you to have networked sites:
either with
sub-domains, or sub-directories, but not both.
with both sub-domains and sub-directories.
only with sub-domains.
none of the above.
only with sub-directories.
Which is the proper method for displaying a post thumbnail in The Loop?
echo the_post_thumbnail( $post_id, $size )
echo the_post_thumbnail( $size )
the_post_thumbnail(
$size )
the_post_thumbnail( $post_id, $size )
Several classes for aligning images and block elements (div, p, table etc.) were introduced in WordPress 2.5: aligncenter, alignleft and alignright. These are styled out of the box for all Themes.
False
True
Which function returns the current post content to be stored in a PHP variable?
$content = the_content();
$content = get_post_content();
$content =
get_the_content();
$content = the_excerpt();
$content = get_the_excerpt();
If you want to write a front-end AJAX handler, you must:
Use
admin-ajax.php and add actions to the wp_ajax_ and wp_ajax_nopriv_ hooks
None of these
Use wp-ajax.php and add actions to the wp_ajax_ and
wp_ajax_nopriv_ hooks
Write a custom ajax.php file
Which wp-config.php constant should be used to disable the WP CRON?
WP_CRON_ENABLED
DISABLE_WP_CRON
It can't be disabled
WP_CRON
What will the output of wp_upload_dir() be?
Boolean: true if the uploads directory is present,
false if not
Array containing
information on the current uploads directory
String containing the path of the current uploads
directory
The add_meta_box() function allows plugin developers to add meta boxes to the administrative interface. Which parameters are required (not optional) for this function?
$id, $title,
$callback, $post_type
$id, $title, $post_type, $priority
$id, $title, $callback_args, $post_type
$id, $title, $callback, $post_type, $context,
$priority, $callback_args
$id, $title, $post_type, $context
Which function should you use to link an admin page from a plugin or a theme?
wp_admin_url()
wp_url()
site_url( array( 'wp-admin', 'my-page' ) )
admin_url()
What are the required parameters for wp_mail function?
$to, $subject,
$message
$to, $subject, $message, $headers
$from, $to, $subject, $message, $headers
$from, $to, $subject, $message, $headers,
$attachments
True or False? The administrator role have the very same set of capabilities in both single and multisite WP
True
False
For the wp_redirect() function to work it needs two required parameters : 1) $location-url 2) $status
False
True
Which of the following is required by WordPress for a plugin to function?
readme file
GPL license
CSS subdirectory
All of these
plugin header
In order to make a specific JavaScript file available to be loaded as needed (but to not actually load it), which function is used?
wp_add_script_for_load();
wp_load_script();
wp_scripts();
wp_enqueue_script();
wp_register_script();
What does define('SAVEQUERIES', true); do?
Save executed
queries in $wpdb for debugging purposes
Save executed queries and output to
wp-content/savedqueries.log
Cache executed queries to save time and resources
What is BackPress?
It is a project to ensure backwards compatibility
of WordPress
It is a set of
libraries derived from WordPress for custom web applications
It's another name for bbPress
It is a plugin to enhance rhe backend
What is a safe way of removing a named option/value pair from the options database table?
remove_option( $option );
delete_the_option( $option );
delete_option(
$option );
trash_option( $option );
The WordPress Cron is 100% accurate timing-wise.
Only if ALTERNATE_WP_CRON is set to true
False
True
The best and safest way to format and sanitize a SQL statement?
$wpdb->makesafe()
$wpdb->prepare()
mysql_real_escape_string()
$wpdb->escape()
mysql_escape_string()
Out of these, which template would be called FIRST when showing an author page?
author-$nicename.php
archive.php
author-$id.php
author.php
index.php
Can wp_schedule_event() schedule a run-once task?
Yes, using 'once' as first arguments
No, we'll need
wp_schedule_single_event();
The following are conditional statements used by the Wordpress Loop to display different content. Which one 'Returns true if a page is displaying a single page'
is_single()
is_page()
is_page_template()
How do you allow a WordPress site on Multisite to upload larger files?
Network Admin > Dashboard
php.ini
Network Admin
> Sites > Edit Sites > Settings
Network Admin > Settings
Contact the Host
What is the correct way to add a CSS file to a theme, but not load it to the HTML?
wp_add_style('handle', $src);
wp_enqueue_style('handle', $src);
wp_register_styles('handle', $src);
wp_add_css('handle', $src);
wp_register_style('handle',
$src)
What is default post type available in WordPress ?
post , page , thumb, revision ,nav_menu_item
post , page , attachment , revision ,menu
post , page , attachment , trash,
publish,draft,nav_menu_item
post , page ,
attachment , revision ,nav_menu_item
If you want to bypass the core cache functionality:
Create an
advanced-cache.php file under wp-content directory
Create a new cache object extending WP_Cache class
Use the constant ADVANCED_CACHE in wp-config.php
It is not possible to bypass core cache
When you run an automatic upgrade which fails and cause you to get the message "Briefly unavailable for scheduled maintenance. Check back in a minute.", you have to:
Delete the line WP_UPDATE_MAINTENANCE() in
wp-config
Delete the file
.maintenance in the WP root
Clean the first line of your .htaccess
Refresh the page and retry to update
Which function removes all shortcodes from given content?
remove_shortcodes
remove_all_shortcodes
strip_all_shortcodes
strip_shortcodes
disable_shortcodes
Using query_posts() destroys the main query object.
False
True
Only when used in conjunction with WP_Query
At the very minimum, a WordPress Theme (parent theme) consists of how many files?
4 files
3 files
2 files
1 file
In menus generated with wp_nav_menu(), which CSS class is assigned to the current page?
.current-menu-item
neither
.current_page_item
both
Custom post types automatically support category and tag archives.
False
Only if you set 'default_archives' => true
True
True or false? WordPress supports many-to-many relationship by default.
True
False
What does the WP Filesystem API do?
abstracts local
files' reading and writing
checks WP core files' permissions
manages the uploads directory tree
What is a valid method for declaring an action hook inside a class ?
add_action('my_action', 'my_function', __CLASS__);
add_action('my_action', 'my_function');
add_action('my_action', 'my_function', $this);
add_action('my_action',
array($this, 'my_function'));
How can you check whether the current $wp_query is a reference to $wp_the_query?
$wp_query->is_ref( $wp_the_query )
$wp_the_query->is_main_query()
query_posts()
is_main_query()
dynamic_sidebar()
How do you set limit in revisions (for e.g 2) in Post/Page of Wordpress admin?
define('WP_POST_REVISIONS',
2 );
define('WP_PAGE_REVISIONS', 2 );
define('WP_REVISIONS', 2 );
define('WP_SET_REVISIONS', 2 );
What do you need in order to have networked sites in a multisite installation with THIS.yourdomain.com?
WordPress must be installed in the root of
yourdomain.com
define(
'SUBDOMAIN_INSTALL', true ); set in your wp-config.php
wildcard DNS.
All of these
dedicated IP address.
True or False? a user with role = "contributor" can publish its own posts.
True
False
What Function trashes or deletes a comment?
<?php wp_delete_comment( $comment_id, $delete )
?>
<?php delete_comment( $comment_id, $force_delete
) ?>
<?php
wp_delete_comment( $comment_id, $force_delete ) ?>
The mu-plugins folder in a WordPress install works only in WordPress MU (or Multisite)
True, if WP_ENABLE_MU_PLUGINS is set to false
True
False
Which default action hook in the loading process is the first that a plugin can hook into?
wp_head
plugins_loaded
the_content
init
User level 2 converts to
Subscriber
Administrator
Contributor
Author
How do you get the current Themes Version?
global $theme; echo $theme->Version;
global $wp_query; $wp_query->theme->Version;
$current_theme = get_current_theme(); echo
$current_theme->Version;
$current_theme =
wp_get_theme(); echo $current_theme->Version;
What Function checks an email address against a list of banned domains?
<?php
is_email_address_unsafe( $user_email ); ?>
<?php email_address_unsafe( $user_email ); ?>
<?php is_user_address_unsafe( $user_email );
?>
<?php is_email_address_banned( $user_email );
?>
If you accidentally delete your Wordpress installation, what data is immediately recovered if you connect a new installation to the old database?
Images and attachments
Your entire Wordpress site
Your entire Wordpress site, although images and attachments
may not be saved
Posts, settings,
widgets
Settings and widgets only
How would one generate RSS feed for a search result via WordPress default search function?
Adding &extend=RSS to the Search URL
Adding search_feed_rss_redirect on; to .htaccess
Adding "define( 'WP_SEARCH_FEED', true ); to
wp-config.php
Adding
&feed=rss to the Search URL
Adding &extend=Atom to the Search URL
Which WordPress function converts double line-breaks to paragraph tags?
wp_add_p
convert_to_paragraph
wp_auto_p
add_paragraph
wpautop
According to the Settings API which are the arguments for the add_settings_section function?
$id, $callback, $page, $option_name
$title, $callback, $page
$id, $title, $callback, $args = array()
$id, $title,
$callback, $page
How do you get the currently requested object (post, page, term, etc.) in WordPress?
get_queried_object
get_item
get_page
get_requested_object
get_post
The optional /wp-contents/mu-plugins/ folder is used to add what type of plugins to a site?
.MU plugins, for multilingual sites.
Memory Utilization plugins, for memory intense
operations.
Multi User plugins, for use on multisite
installations.
Must Use
plugins, activated automatically.
Which WordPress function can be used to display a translatable date string?
the_date( array( 'i18n' => true ) );
wp_the_date( array( 'i18n' => true ) );
date_i18n();
If a file named "plugin-install.php" is in your plugin folder:
There is already a file called that there.
It depends on the plugin.
It will impact
the "Add New" plugin link in left-side menu in The Dashboard
It is an admin file that displays what plugins are
installed and when.
It has to be activated to do anything.
What is the best way to include a JavaScript object to a plugin or theme with WordPress?
wp_register_object( $handle, $object_name,$array );
wp_register_script( $handle, $src, $deps, $ver,
$in_footer );
wp_localize_script(
$handle, $object_name, $l10n );
wp_object( $object, $in_footer );
wp_enqueue_script( $handle, $src, $deps, $ver,
$in_footer );
What function will you use to display categories dropdown list
wp_dropdown_categories
wp_category_options
categories_dropdown
wp_categories_dropdown_list
wp_select_category
When attaching a function to the admin_enqueue_scripts hook what variable is available for your function to use?
$ajaxurl
$hook_suffix
$admin_header
$jquery_version
True or False? Post formats are supported in every WordPress theme.
False
True
A Number used ONCE to verify an action. Because it cannot be used again, it provides some security.
FALSE
TRUE
Neither True nor False
Which of the following is NOT a default supported post format?
Gallery
Link
Chat
Video
Slideshow
Which of these is the best practice function for displaying the homepage URL of your website within WordPress?
get_bloginfo( 'url' );
site_url();
home_url();
What's the way to enable Atom Publishing and XML-RPC protocol?
By editing functions.php
Under Tools > Available Tools
By editing functions.php or home.php (depending on
the theme)
Under Settings
> Writing Settings
Under Settings > Privacy > Remote Publishing
which function will return current site URL
bloginfo('site_url')
bloginfo('name')
bloginfo('url')
get_bloginfo('url')
When you have a WordPress loop within another WordPress loop using the WP_Query(); function, you should end your inner loop with what function to make sure the parent loop continues?
reset();
wp_reset();
Any of these
wp_reset_postdata();
Which WordPress function returns difference between two timestamps in a human readable format ("1 day", "10 mins"...)?
human_time_diff
humanize_time_diff
time_difference
time_diff
convert_time_diff
If you want to use memcached as an alternate cache method you should
None of these
Create a file
named object-cache.php under wp-content that overrides the default cache
functions
Create a wp-cache.php file in the WordPress root
directory
Extend the class WP_Cache to use memcached methods
Install memcached in your system. WordPress will
take care of the rest!
A child theme will always override functions from the parent theme.
True
Only if the parent theme has no /includes directory
False
Which should you use to add 'enctype="multipart/form-data"' attribute to an admin side post/page form ?
post_edit_form_tag
page_edit_form
page_edit_form_tag
edit_form_tag
To create a child theme, what value is assigned to the "Template:" key?
The name of the parent theme.
The text-domain of the theme.
The name of the
folder/directory of the parent theme.
This is a trick question, none of the above.
The name of the template file where the
parent-child relationship is stored.
What is GlotPress?
It is a community of WordPress users who use Glot
as their main communication channel
It's a sister
project of WordPress used for maintaining translations
It is a plugin to create food related blogs
Which protocol is used in WordPress to represent human relationships through hyperlinks?
FriendConnect
OpenGraph
XNA
OpenID
XFN
What action is used to modify the post query before it is run?
pre_get_posts
wp_query
before_wp_query
pre_wp_query
before_get_posts
Which one is a standalone function and NOT a Rewrite API object method?
flush_rewrite_rules();
flush_rules();
When using WordPress multi-site, how you can get the ID of the current blog?
BLOG_ID constant
get_current_site()
function
current_blog_id() function
BLOG_ID_CURRENT_SITE constant
get_blog_id() function
What is the correct way to specify the current theme directory for including a php file from the theme?
get_bloginfo('stylesheet_directory')
get_stylesheet_directory_uri()
get_stylesheet_directory()
bloginfo('stylesheet_directory')
In wp-config.php, define('WP_DEBUG', true) will activate WP core javascript debug?
Yes, WP_DEBUG logs everything
No, there's a
specific constant for that
What is the name of the action hook that is executed at the beginning of each standard WordPress Loop?
wp_loop_start
wp_start_loop
loop_start
wp_loop
start_wp_loop
Which function is a quick way to add a "submit" button to a form within the WordPress admin?
wp_button( array( 'type' => 'submit' ) );
wp_submit_button();
submit_button();
add_submit_button();
do_action( 'submit_button' );
Which WordPress function transforms a double dash ( -- ) into a proper em-dash ( — )?
wpautop
wptexturize
doubledash_to_emdash
emdash_convert
To improve WordPress security it is advisable to completely remove your WordPress version number from both your head file and RSS feeds. Which of the following methods achieves this.
Remove <meta name="generator"
content="WordPress <?php bloginfo('version'); ?>" /> from
the header.php file
Add the
following function to your functions.php file: function 123qaz_remove_version()
{ 2 return ''; 3 } 4 add_filter('the_generator', '123qaz_remove_version');
Add the following line to the functions.php file -
remove_action('wp_head', 'wp_generator');
How do you get the ID of the current post outside the loop?
$post->ID
$wp_query->post->ID
get_the_ID()
the_id()
$post->post_id
Which JavaScript library was added to the core in WordPress 3.5?
Prototype
jQuery
SimplePie
Backbone
Which define constant needs to be set in wp-config.php to Force SSL on the Admin Panel?
define('FORCE_SSL_LOGIN',
true);
define('WP_SSL_LOGIN', true);
define('WP_FORCE_SSL_LOGIN', true);
After looping through a separate query and calling the_post(), which function restores the $post global to the current post in the main query?
wp_reset_post()
wp_reset_query()
wp_restore_post()
wp_reset_postdata()
wp_restore_postdata()
Which WordPress function is used to get the content of a post after the <!--more--> tag?
get_extended();
get_content_after_more();
get_after_more();
content_after_more();
get_extended_content();
Your plugins and themes cannot, under any circumstance, be located anywhere other than the "wp-content" folder.
True
False
What is the default html5 video player library in WordPress?
FlowPlayer
MediaElement.js
jPlayer
JWPlayer
video.js
Which template tag is used to optionally display a list of the pages in a page or blog post that has been split into multiple pages (using <!--nextpage-->)?
wp_link_pages();
the_link_pages();
the_page_links();
wp_the_page_links();
wp_page_links();
Which one of the following WordPress functions doesn't exist?
wp_redirect()
wp_get_current_user_by()
wp_get_gravatar()
wp()
wp_parse_args()
Can you properly add you own WP code before the first action hook "plugins_loaded" without hacking the core ?
Yes, by adding a
.php file in wp-content/mu-plugins/ folder
No, impossible
Yes, by editing the wp-includes/functions.php file
Yes, by editing the wp-content/themes/[YOUR-THEME]/functions.php
file
Yes, by editing the wp-config.php file
What is the function used to create dashboard widgets?
wp_create_dashboard_widget
wp_add_dashboard_widget()
add_dashboard_widget()
wp_add_widget_dashboard()
wp_new_dashboard_widget()
Default WordPress automatically saves the state of your post every 60 seconds while you work on a post. How do you change this default time interval?
define('AUTOSAVE_INTERVAL',
{value} );
define('WP_AUTOSAVE_INTERVAL', {value} );
define('SAVE_AUTOSAVE_INTERVAL', {value} );
When constructing a URL with query parameters (?test=1, for example), what is the correct expression to add the query parameters to the URL?
add_query_arg( esc_url( 'http://domain.com/' ),
'test', '1' );
add_query_arg(
'test', '1', esc_url( 'http://domain.com/' ) );
$url = $url . add_query_arg( 'test', '1' );
add_query_arg( esc_url( 'http://domain.com/' ),
'1', 'test' );
In which field in the wp_posts table is the post’s slug stored?
post_name
slug
url_slug
url_name
post_slug
Which capability is required to edit menus?
publish_posts
manage_options
edit_menus
edit_posts
manage_menus
Which is the correct function for loading a translation file from within a child theme?
load_textdomain();
load_textdomain( array( 'type' => 'theme',
'is_child' => true ) );
load_theme_textdomain( array( 'is_child' => true
) );
load_childtheme_textdomain();
What argument do you pass to WP_Query to prevent querying for post meta data?
'the_meta_cache' => false
'update_post_meta_cache'
=> false
'no_found_meta_data' => true
'get_post_meta' => false
The wp_cache_set() function will cache the stored data between requests.
Only if a
persistent caching plugin is active
True
False
What argument do you pass to WP_Query to prevent querying for the post terms
'update_post_term_cache'
=> false
'get_the_terms' => false
'update_post_terms' => false
'update_post_meta_cache' => true
'no_found_terms' => true
What is the main difference between WordPress Object Cache and the WordPress Transients API?
Wordpress object cache never expire.
Wordpress object
cache is non-persistent.
The tansients api is non-persistent.
The transients API does not cache objects.
When adding rewrite rules via a plugin to the default WordPress environment, it is necessary to flush the rewrite rules:
only after the permalinks are saved
every time the
plugin is activated
on every page load
It is not necessary, the WordPress framework takes
care of all rewrite rule processing.
when the 'init' action hook is called
How can you detect a custom URL redirect?
add_filter('url_redirect','custom_function')
wp_redirect()
add_redirect()
detect_redirection()
add_action('template_redirect','custom_function');
When localising text within WordPress, which function is used when context is required for the text translation (when a word can have more than one meaning)?
_x();
__();
get_translation_context();
_e();
_n();
What hook would you use to insert something after the title on the post edit screen?
edit_form_before_editor
edit_form_after_title
add_after_title
wp_after_title
Which of the following functions does NOT output a list of WordPress pages?
wp_get _pages();
wp_page_menu()
wp_list_pages()
wp_dropdown_pages()
Which function would you use to find out whether a certain action in WordPress has already been fired?
add_action
did_action
do_action_ref_array
has_action
do_action
Which format does the readme.txt file used in themes and plugins follow?
Markup
XML
plaintext
HTML
Markdown
WordPress Codex site is built on?
BuddyPress
BackPress
bbPress
Mediawiki
WordPress
How does one add a cron schedule recurrence?
Filter wp_get_schedules
Use wp_reschedule_event
Filter
cron_schedules
Change the settings in Tools > Cron
What is the default post_status for attachments?
publish
inherit
pending
draft
The function get_taxonomies( ) can handle which parameters?
$ID, $string, $operator
$args, $output,
$operator
$args, $string, $operator
$args, $string, $ID
The action hook to save post meta on is called:
save_post_meta
save_meta
save_post
update_post_meta
edit_post
What color picker JavaScript library shipped with version 3.4?
Barbtastic
Iris
Spectrum
Fantastic
Farbtastic
Which function retrieves the translation of text and escapes it for safe use in HTML?
__()
esc_html_e()
esc_html()
esc_html__()
esc_attr()
Where can the size limit for uploaded files be set?
In Settings > General
None of these
In Settings > Media > File Upload
By editing wp-admin/php/media/u/php.ini (Wordpress
root)
What function makes sure that all 'wordpress', 'Wordpress' and so on are converted to 'WordPress'?
wp_correct_case()
capital_P_dangit()
make_WP()
Common! There's no such function.
To add your own "custom meta box" to the WordPress dashboard, you would use this function:
wp_add_dashboard_widget('custom_meta_box',
'My Metabox Title', 'custom_dashboard_box');
add_meta_box('custom_meta_box', 'My Metabox Title',
'custom_dashboard_box');
add_dashboard_widget('custom_meta_box', 'My Metabox
Title', 'custom_dashboard_box');
wp_add_meta_box('custom_meta_box', 'My Metabox
Title', 'custom_dashboard_box');
Which of the following functions is deprecated?
is_single()
is_post()
in_category()
is_sticky()
Which function displays a login link?
get_login_logout( $redirect, $echo )
wp_login_form( $redirect, $echo )
wp_loginout(
$redirect, $echo )
wp_login_logout( $redirect, $echo )
What function would you use to check if a plugin has been network activated in WordPress multisite?
is_plugin_network_active()
plugin_active_for_network()
is_plugin_active_for_network()
is_plugin_active_on_network()
is_plugin_network_activated()
During a typical page load, which action hook is fired last?
wp_footer
shutdown
wp_die
wp_end
exit
How many times a minute can spawn_cron() run?
any number: requests will be queued up
once
every time is needed
twice
When using the WordPress Settings API to create a custom settings screen, which function is used to output the settings sections and fields?
do_action( 'settings_sections' );
do_settings_sections();
settings_fields();
register_setting();
do_action( 'settings_fields' );
How do you add a contextual help tab for a plugin or theme?
Any of these options.
Using contextual_help WordPress filter
Using
add_help_tab() function
Using add_contextual_help() function
In which hook is the safest to fire a remove_menu_page to menus created by plugins?
admin_menu
init
admin_init
wp_admin_menu
wp_admin_init
Which escaping function should you use to escape a string for a LIKE SQL statement?
like_escape
esc_attr
esc_textarea
esc_sql
sql_escape
What parameters do you need to pass to the get_the_author_meta()?
$user_nicename, $field
$userID, $postID
$postID, $field
$field, $userID
$postID
To add a network-wide option in a multisite WP instance, you'll use:
add_sitewide_option()
add_site_option()
add_multisite_option()
add_network_option()
add_global_option()
What WordPress function allows you to add an RSS feed to your template?
return_rss_feed();
fetch_the_feed();
fetch_feed();
get_rss_feed();
the_feed();
Which filter would you use, if you'd like to alter the output of every comment content in WordPress?
comment_content
comment_text
comment_save
get_comment_contents
In the case of a free WordPress.com blog, the number of users that can be invited by a registered user is:
35
45
unlimited
32
30
How do you store the FTP password in wp-config.php?
define('FTP_PASS',
'password');
define('FTP_PASSWORD', 'password');
define('FTP_KEY', 'password');
You can't store the FTP password in wp-config.php
How do you display all the meta data associated with a post while in the Loop?
get_post_meta()
get_post_custom()
the_meta()
get_post_keys()
get_the_meta()
If pagination is not needed, which of the following should be included in the array of arguments passed to WP_Query()?
'no_found_rows'
=> true
'paginate' => false
'pagination' => false
'no_pagination_required' => true
If you are writing a custom query that will not be paginated, you should:
add 'no_pagination' => true to the query args
add
'no_found_rows' => true to the query args
do nothing, it doesn't matter
do nothing, WordPress will detect this
automatically
add 'no_count_rows' => true to the query args
Since version 3.3, which function should be used to add contextual help to admin pages?
add_help_tab
admin_help_tab
wp_admin_add_help
add_contextual_help
add_help