____________ can manage their own profiles, but can do virtually nothing else in the administration area.
Contributor 3.0%
Author 6.0%
Editor 1.0%
Subscriber 87.0%
Administrator 1.0%
____________ can publish, edit, and delete posts and pages written by any user. They can upload some kinds of files, and they can write HTML without restrictions. They can manage links and categori...
Contributor 1.0%
Author 3.0%
Editor 86.0%
Subscriber 1.0%
Administrator 7.0%
_____________ can publish, edit, and delete their own posts. They cannot write pages. They can upload some kinds of media files, and they are allowed to use only the limited set of HTML tags.
Contributo 1.0%
Autho 92.0%
Edito 4.0%
Subscribe 1.0%
Administrato 0.0%
A possible way to allow the display of several authors' names on one post is to ______
update the database 0.0%
change the admin settings 7.0%
change the config files 0.0%
use a plug-in 92.0%
Are categories and tags available for pages? <b>Note:</b> Categories must have distinct slugs. Even if two categories have different parents and would therefore have different permalinks, you can'...
Can the contents of the wp-content folder be moved or renamed without changing any settings?
Conditional tags can be used to _______________________.
get all comments from one post 1.0%
get all posts from one category 0.0%
change the content to be displayed 96.0%
None of the above: conditional tags are not available in WordPress. 1.0%
How can a custom content filter be added?
By using add_action('the_content','my_custom_filter') 0.0%
By using add_filter('the_content','my_custom_filter') 100.0%
By using wp_filter('the_content','my_custom_filter') 0.0%
By using add_action('content','my_custom_filter') 0.0%
How can a post ID be retrieved from the permalink?
Its not possible to retrieve the post ID from a permalink due to its structure. 0.0%
It can be retrieved by using a Regular Expression. 0.0%
wp_get_post_id($permalink) 0.0%
url_to_postid($permalink) 100.0%
How can a user be found through its meta data?
User can not be retrieved through its meta data 0.0%
get_user_by_metadata($metaid,$metavalue) 7.0%
get_user($args) 0.0%
get_users($args) 92.0%
How can a WordPress template be integrated inside a codeigniter framework using WordPress functions like wp_header,wp_footer,wp_sidebar?
Include the file wp-blog-header.php from WordPress installation directory to codeigniters index.php and create template inside codeigniter's view. 93.0%
Include the file wp-settings.php from WordPress installation directory to codeigniters index.php and create template inside codeigniter's view. 4.0%
Create template inside WordPress theme directory and include the file in codeigniter's view.php file. 2.0%
It is not possible to integrate wordpress with codeigniter. 0.0%
How can an <li> tag's class and ID attributes be removed from menu items and page lists?
add_filter('nav_menu_css_class', 'my_css_attributes_filter', 100, 1); add_filter('nav_menu_item_id', 'my_css_attributes_filter', 100, 1); add_filter('page_css_class', 'my_css_attributes_filter', 100, 1); function my_css_attributes_filter($var) { return is_array($var) ? array() : ''; } 92.0%
add_filter('nav_menu_css_class', 'my_css_attributes_filter', 100, 1); add_filter('nav_menu_item_id', 'my_css_attributes_filter', 100, 1); function my_css_attributes_filter($var) { if(is_array($var)){ $varci= array_intersect($var, array('current-menu-item')); $cmeni = array('current-menu-item'); $selava = array('selectedmenu'); $selavaend = array(); $selavaend = str_replace($cmeni, $selava, $varci); } else{ $selavaend= ''; } return $selavaend; } 7.0%
add_filter ('wp_nav_menu','strip_empty_classes'); function strip_empty_classes($menu) { $menu = preg_replace('/ class=(["'])(?!active).*?1/','',$menu); return $menu; } 0.0%
None of the above 0.0%
How can the Home link be disable from the Wordpress top nav?
Using Jquery to hide it 7.0%
By adding this code in functions.php function page_menu_args( $args ) { $args['show_home'] = FALSE; return $args; } add_filter( 'wp_page_menu_args', 'page_menu_args' ); 87.0%
wp_nav_menu( array('menu' => 'news', 'show_home' => false)) 4.0%
Can not disable the default Home link from wordpress top nav 0.0%
How can the upload media panel be included in a Wordpress template/plugin?
By using function wp_enqueue_script('media-upload') 97.0%
By using function wp_add_media( ); 2.0%
By using function wp_enqueue_script('upload'); 0.0%
By using function wp_add_script('media-upload'); 0.0%
Image size limits can be set _______________.
directly in the posts 2.0%
in the wp-imageresize plug-in 0.0%
in the admin settings 97.0%
a and 0.0%
In order to display a widget, the user must _________________.
set the "show property" of the desired widget to "true" 0.0%
drag the desired widget to the side ba 100.0%
add the desired widget to the post 0.0%
change the source code 0.0%
In which way MD5 hash does wordpress stores and represents?
In Hex string 94.0%
In Base64 string 2.0%
in raw data file 0.0%
text file 2.0%
Is super cache a built-in plugin of WordPress?
Meta tags can be added to WordPress pages by ________________.
using plug-ins 2.0%
adding them to the header.php file 4.0%
updating the database 0.0%
a and 93.0%
and c 0.0%
On which of the following databases can WordPress be installed by default?
MySQL 100.0%
Oracle Database 0.0%
Microsoft SQL Server 0.0%
PostgreSQL 0.0%
One possible way to collect realtime statistics about traffic on a WordPress site is:
using a built-in tool 0.0%
using a plugin 100.0%
using a widget 0.0%
Traffic statistics cannot be collected on a WordPress site. 0.0%
User Level 7 converts to _________?
Contributo 0.0%
Autho 0.0%
Edito 100.0%
Subscribe 0.0%
Administrato 0.0%
What are the correct steps in wordpress plugin development:
Step 1 - Create your file and let it be known as a plugin Step 2 – Create the objects of your plugin Step 3 – Adding your actions and filters Step 4 – Adding settings/options to your plugin Step 5 - Finishing the code 100.0%
Step 1 – Adding settings/options to your plugin Step 2 - Create your file and let it be known as a plugin Step 3 – Create the objects of your plugin Step 4 – Adding your actions and filters Step 5 - Finishing the code 0.0%
Step 1 – Create the objects of your plugin Step 2 – Adding settings/options to your plugin Step 3 - Create your file and let it be known as a plugin Step 4 - Finishing the code 0.0%
Step 1 – Create the objects of your plugin Step 2 – Adding settings/options to your plugin Step 3 - Finishing the code 0.0%
What are the database privileges that are required for WordPress?
insert, delete, update, drop and alter 0.0%
select, insert, delete, update, create, drop and alter 100.0%
insert, delete, update, create, drop and alter 0.0%
insert and delete 0.0%
What is Automated Testing in Wordpress?
Automated testing is running test cases where manual intervention is not required to run each one. 97.0%
It is a plugin which is used to test your custom template or plugin. 2.0%
It is a function available in WordPress to test the custom template/plugin. 0.0%
There is no such thing as Automated Testing in WordPress. 0.0%
What is the BEST way to get last inserted row ID from Wordpress database ?
Use the following code snippet $lastid->$wpdb=$last->get_row; 0.0%
The call to mysql_insert_id() inside a transaction should be added: mysql_query('BEGIN'); // Whatever code that does the insert here. $id = mysql_insert_id(); mysql_query('COMMIT'); // Stuff with $id. 6.0%
The following code snippet should be added $last = $wpdb->get_row("SHOW TABLE STATUS LIKE 'table_name'"); $lastid = $last->Auto_increment; 0.0%
Straight after the $wpdb->insert() insert, the following code should be added: $lastid = $wpdb->insert_id; 93.0%
What is the first action you need to take for enabling the WordPress multisite (MS) feature?
Enable the WordPress multisite feature on admin panel 0.0%
Enable the Network feature 0.0%
Add this code to wp-config.php file: define( 'WP_ALLOW_MULTISITE', true ); 100.0%
What is the first action you need to take for enabling WordPress MU feature?
Enable WordPress MU feature on admin panel 7.0%
Enable Network feature 0.0%
Add this code to wp-config.php file: define( 'WP_ALLOW_MULTISITE', true ); 92.0%
What is the function of add_filter in WordPress?
It registers a filter for a tag. 9.0%
It removes line breaks from the pages list. 0.0%
It is a companion function to apply_filters(). 0.0%
All of the above. 90.0%
What is the limitation to the depth of your categories?
10 levels 0.0%
20 levels 0.0%
No limit levels 100.0%
What is the output of the following code? <ul id="sortable"> <li id="1">example 1</li> <li id="2">example 2</li> <li id="3">example 3</li> <li id="4">example 4</li> </ul> $(docume...
Removes positions from data base based on the user input 0.0%
Saves sortable positions to data base based on the user input 97.0%
Adding new sortable positions from another data base 0.0%
Sorting out existing positions without updating the data base with the new user inputs 2.0%
Which conditional tag checks if the dashboard or the administration panel is attempting to be displayed by returning "true' (if the URL being accessed is in the admin section) or "false" (for a fro...
my_admin() 2.0%
view_admin() 0.0%
is_admin() 97.0%
root_admin() 0.0%
Which function is used to display the name of current page in wordpress?
get_the_title() 100.0%
content_title() 0.0%
page_name() 0.0%
post_name() 0.0%
Which of the follow is a Wordpress alternatives for Ruby on Rails?
Refinery 100.0%
Typof 0.0%
Symenta 0.0%
Rubyalt 0.0%
Which of the following actions cannot be hooked in with add_submenu_page() function?
admin_submenu 93.0%
admin_menu 6.0%
user_admin_menu 0.0%
network_admin_menu 0.0%
Which of the following actions must be performed to import data from wordpress.com?
Enter the full access to wordpress.com into the data import form so that it can automatically connect and directly retrieve content. 2.0%
Import from wordpress.com's RSS. 2.0%
Login to wordpress.com, then the export data using the export tool, then import an exported xml file to the site. 94.0%
Which of the following code snippets best protects a system from SQL injections?
sql_real_escape_strong() 0.0%
mysql_real_escape() 0.0%
mysql_real_escape_string() 100.0%
mysql_not_real_delete_string() 0.0%
Which of the following code snippets can be used to create custom POST status in wordpress 3.0 +?
register_new_post() 0.0%
register_post_status() 100.0%
add_new_post_status() 0.0%
modify_post_status() 0.0%
Which of the following code snippets is the correct way to get content from Tinymce via javascript ?
document.getElementById('content') 0.0%
tinymce.activeEditor.getContent(); 100.0%
tinymce.element.getContent(); 0.0%
document.getElement('tinymce_content') 0.0%
Which of the following code snippets will create plugins back-end page without showing it as menu item?
add_submenu_page with parent slug = null 91.0%
add_menu_page with parent slug = null 0.0%
add_submenu_page without parent slug = null 0.0%
add_menu_page without parent slug = null 8.0%
Which of the following codes will return the current plugin directory in WordPress?
<?php plugin_basename($file); ?> 97.0%
<?php plugin_basename('url'); ?> 0.0%
<?php bloginfo_plugin('url'); ?> 0.0%
<?php content_plugin_url( $path ); ?> 2.0%
Which of the following commands can change the ownership of WordPress directory to www-data (for Apache)?
sudo chown -Rf www-data * 78.0%
chown -Rf www-data * 0.0%
sudo crown -Df www-data * 21.0%
Alldo chown -Rf www-data * 0.0%
Which of the following functions are used to add administration menu item in WordPress ?
add_menu_page(); 97.0%
add_admin_item(); 2.0%
add_admin_page(); 0.0%
add_admin_option(); 0.0%
Which of the following functions are used when adding CSS and jQuery codes on a WordPress plugin?
wp_register_style 4.0%
wp_enqueue_style 52.0%
wp_enqueue_script 38.0%
None of these. 4.0%
Which of the following functions can be used to create a WordPress page?
wp_insert_post() 97.0%
wp_insert_page() 0.0%
wp_create_post() 0.0%
wp_create_page() 2.0%
Which of the following is an example of a WordPress plugin that provides multilingual capabilities?
WP Super Cache 0.0%
qTranslate 80.0%
BuddyPress 20.0%
Hotfix 0.0%
Which of the following is the correct code to get an array of every image uploaded to a particular post?
$images =& get_children( 'post_type=attachment&post_mime_type=image&post_parent=10' ); 0.0%
$images = wp_get_attachment_url( get_post_thumbnail_id($post->ID) ); 100.0%
$images = get_post(7, ARRAY_A); 0.0%
It cannot be done 0.0%
Which of the following is the correct sequence of steps to adapt a WordPress plugin to a multisite?
1. Use $wpdb to iterate through all blogs 2. Hook according to the $blog_id 3. Install the plugin as Network only 4. Uninstall depends the specific plugin 97.0%
1. Use $wp_posts to iterate through all blogs 2. Hook according to the $function 3. IInstall the plugin as Network only 4. Uninstall depends the specific plugin 2.0%
1. Use $wp_posts to iterate through all blogs 2. Hook according to the $function 3. Install other activations except Network 4. Uninstall is the same for all the plugins 0.0%
1. Use $wp_posts to iterate through all blogs 2. Hook according to the $function 3. Install the plugin as Network only 4. Uninstall is same for all the plugins 0.0%
Which of the following is the correct way to add custom excerpts length identifiers in Wordpress?
By adding excerpt_length filter in function.php 80.0%
Can’t declare custom excerpts in wordpress 0.0%
Custom exceprts are already available in wordpress 20.0%
Using the_excerpt(‘long’); or the_excerpt(‘short’) 0.0%
Which of the following is the correct way to assign a category to a Wordpress post?
wp_set_post_categories($postId,$categories) 100.0%
wp_set_category($catId,$postId) 0.0%
By XML-RPC call to wpc.newPost 0.0%
This is not possible 0.0%
Which of the following is the correct way to filter the content for a few posts?
By using apply_filters(filter,postId) 100.0%
This is not possible in wordpress 0.0%
Can create filter for posts in a specific wordpress category 0.0%
Passing arguments into the_content() 0.0%
Which of the following is the correct way to get WordPress Post ID from the Post title?
$page = get_page_title( 'About' ); wp_pages( 'exclude=' . $page->ID ); 0.0%
$page = get_page_by_title( 'Home' ); $page_id = $page->ID; 93.0%
$page = get_page_by_title( 'About' ); wp_pages( 'exclude=' . $page->ID ); 6.0%
None of the above 0.0%
Which of the following is the correct way to print the slug property of $firstTag object in this code snippet? $tags = wp_get_post_tags($post->ID); $firstTag = $tags[0];
$firstTag[‘slug’]; 0.0%
$firstTag->slug 100.0%
$firstTag.slug 0.0%
$firstTag[0][‘slug’] 0.0%
Which of the following is the correct way to redirect the default login and registration page URL to a custom login and registration page URL?
add_action('init','possibly_redirect'); function possibly_redirect(){ global $pagenow; if( 'wp-login.php' == $pagenow ) { return('Your custom url'); exit(); } } 0.0%
add_action('init','possibly_redirect'); function possibly_redirect(){ global $pagenow; if( 'wp-login.php' == $pagenow ) { wp_redirect('Your custom url'); exit(); } } 100.0%
add_action('init','possibly_redirect'); function possibly_redirect(){ global $pagenow; if( 'wp-login.php' == $pagenow ) { redirect('Your custom url'); exit(); } } 0.0%
add_action('init','possibly_redirect'); function possibly_redirect(){ global $pagenow; if( 'wp-login.php' == $pagenow ) { wp_return('Your custom url'); exit(); } } 0.0%
Which of the following is the correct way to retrieve a featured image from a post?
<?php echo get_post_thumb($page->ID, 'thumbnail'); ?> 0.0%
<?php echo get_featured_image($page->ID, 'thumbnail'); ?> 2.0%
<?php echo get_the_post_thumbnail($page->ID, 'thumbnail'); ?> 97.0%
<?php echo get_post_thumbnail($page->ID, 'thumbnail'); ?> 0.0%
Which of the following methods can be used to make permalinks SEO friendly?
Updating the database. 0.0%
Changing the source code. 0.0%
Configuring the feature in the config file. 0.0%
Configuring the feature in the admin settings. 100.0%
Which of the following role levels has the highest privilege?
Level_0 0.0%
Level_10 100.0%
Depends on your settings. 0.0%
Every role level has the same privilege. 0.0%
Which of the following snippets disable depreciated warnings in Wordpress like this one ? "Deprecated: Assigning the return value of new by reference is deprecated in /home//public_html/hub/wp-se...
define(E_DEPRECATED, false); 3.0%
error_reporting(E_ALL ^ E_DEPRECATED); 93.0%
define(E_NOTICE, false); 0.0%
error_reporting(WP_DEBUG, true) 3.0%
Which of the following will call the WordPress media uploader form element?
<form enctype="multipart/form-data" method="post" action="<?=bloginfo("siteurl");?>/wp-admin/media-upload.php?inline=&upload-page-form=" class="media-upload-form type-form validate" id="file-form"> 97.0%
<a onclick="return false;" title="Upload image" class="thickbox" id="add_image" href="media-upload.php?type=image&TB_iframe=true&width=640&height=105">Upload Image</a> 2.0%
<a href="media-upload.php?type=image&TB_iframe=true&width=640&height=105">Upload Image</a> 0.0%
<form enctype="multipart/form-data" method="post" action="<?=bloginfo("bloginfo");?>/wp-admin/media-upload.php?inline=&upload-page-form=" class="media-upload-form type-form validate" id="file-form"> 0.0%
Which of the following will correctly add custom mod rewrite rules to .htaccess from a WordPress plugin?
$custom_mod_rewrite = new custom_mod_rewrite; register_activation_hook( __FILE__, array($custom_mod_rewrite, 'flush_rewrite_rules')); register_deactivation_hook( __FILE__, array($custom_mod_rewrite, 'flush_rewrite_rules')); add_action('generate_rewrite_rules', array($custom_mod_rewrite, "generate_rewrite_rules")); class custom_mod_rewrite { function __construct() { $this->wp_rewrite = & $POST["wp_rewrite"]; }} 16.0%
$custom_mod_rewrite = new custom_mod_rewrite; register_activation_hook( __FILE__, array($custom_mod_rewrite, 'flush_rewrite_rules')); register_deactivation_hook( __FILE__, array($custom_mod_rewrite, 'flush_rewrite_rules')); add_action('generate_rewrite_rules', array($custom_mod_rewrite, "generate_rewrite_rules")); class custom_mod_rewrite { function __construct() { $this->wp_rewrite = & $GLOBALS["wp_rewrite"]; } } 83.0%
$custom_mod_rewrite = new custom_mod_rewrite; register_activation_hook( __FILE__, array($custom_mod_rewrite, 'flush_rewrite_rules')); register_deactivation_hook( __FILE__, array($custom_mod_rewrite, 'flush_rewrite_rules')); add_action('generate_rewrite_rules', array($custom_mod_rewrite, "generate_rewrite_rules")); class custom_mod_rewrite { function __construct() { $this->wp_rewrite = & $GLOBALS["wp_rewrite"]; } function mod_rewrite_rules($rules) { return preg_replace('#^(RewriteRule ^.*/)?$plugin_name .*(http://.*) [QSA,L]#mi', '$1 $2 [R=301,L]', $rules); } } 0.0%
$custom_mod_rewrite = new custom_mod_rewrite; register_activation_hook( __FILE__, array($custom_mod_rewrite, 'flush_rewrite_rules')); register_deactivation_hook( __FILE__, array($custom_mod_rewrite, 'flush_rewrite_rules')); add_action('generate_rewrite_rules', array($custom_mod_rewrite, "generate_rewrite_rules")); class custom_mod_rewrite { function __construct() { $this->wp_rewrite = & $SESSION["wp_rewrite"]; } } 0.0%
Which of the following will correctly load localized (translated) text for a WordPress plugin?
function custom_theme_setup() { $lang_dir = get_template_directory() . '/lang'); load_theme_textdomain('tutsplus', $lang_dir); } add_action('after_setup_theme', 'custom_theme_setup'); 17.0%
function custom_theme_setup() { $lang_dir = get_template_directory() . '/lang'); add_action('after_setup_theme', 'custom_theme_setup'); } 0.0%
function custom_theme_setup() { $lang_dir = get_template_directory() . '/lang'); add_action('after_setup_theme', 'custom_theme_setup'); } load_theme_textdomain('tutsplus', $lang_dir); 2.0%
function load_theme_textdomain('tutsplus', $lang_dir); { $lang_dir = get_template_directory() . '/lang'); custom_theme_setup(); } add_action('after_setup_theme', 'custom_theme_setup'); 80.0%
Which of the following will echo the base URL of a WordPress site?
<?php echo get_bloginfo('base_url') ?> 0.0%
<?php echo get_bloginfo('url') ?> 75.0%
<?php echo get_bloginfo('site_url') ?> 25.0%
<?php echo get_website_url() ?> 0.0%
Which of the following will give the option to add inline Ajax for comment posting?
Enabling Ajax in the wp-config.php file 0.0%
Activating Ajax from the admin settings of WordPress 0.0%
Using the Ajax Comment Posting plugin 100.0%
Wordpress doesn't support inline Ajax. 0.0%
Which of the following will hash a string/password to its md5 equivalent?
md5() 9.0%
wp_generate_password() 90.0%
wp_generate_md5() 0.0%
password_md5() 0.0%
Which of the following will show the most recent post (by date) from a custom taxonomy?
select * from wp_posts where ID in( select ID from ( select wp_posts.ID , wp_posts.post_date, d.name from wp_posts as a join wp_term_relationships as b on ( a.ID = b.object_id) join wp_term_taxonomy as c on (b.term_taxonomy_id = c.term_taxonomy_id) join wp_terms as d on (c.term_id = d.term_id) where c.taxonomy = 'post-series' group by d.name having (wp_posts.post_date = max(wp_posts.post_date)) )tmp) 0.0%
select * from wp_posts where ID in( select ID from ( select wp_posts.ID , wp_posts.post_date, d.name from wp_posts as a join wp_terms as d on (c.term_id = d.term_id) where c.taxonomy = 'post-series' group by d.name having (wp_posts.post_date = max(wp_posts.post_date)) )tmp) 0.0%
select * from wp_posts where ID in( select ID from ( select wp_posts.ID , wp_posts.post_date, d.name from wp_posts as a join wp_term_relationships as b on ( a.ID = b.object_id) join wp_term_taxonomy as c on (b.term_taxonomy_id = c.term_taxonomy_id) join wp_terms as d on (c.term_id = d.term_id) having (wp_posts.post_date = max(wp_posts.post_date)) )tmp) 0.0%
select * from wp_posts where ID in( select ID from ( select wp_posts.ID , wp_posts.post_date, d.name from wp_posts as a join wp_term_relationships as b on ( a.ID = b.object_id) join wp_terms as d on (c.term_id = d.term_id) where c.taxonomy = 'post-series' group by d.name having (wp_posts.post_date = max(wp_posts.post_date)) )tmp) 100.0%
Which of the following WordPress Multisite functions allows for getting content from one blog and display it on another?
switch_blog() 0.0%
switch_to_blog() 100.0%
restore_current_blog() 0.0%
restore_to_current_blog() 0.0%
Which of the functions below is required to create a new taxonomy?
add_taxonomy 0.0%
register_taxonomy 100.0%
create_taxonomy 0.0%
Which PHP method(s) can be used to send form data that is persistent across succeeding page views (such as for a language selection feature) in WordPress?
POST 0.0%
GET 0.0%
SESSION or COOKIE 96.0%
POST or GET 3.0%
WordPress's requirements are modest. At minimum, which of the following standards should your server support for WordPress 3.1?
PHP version 4.4.9 or greater, MySQL version 4.0 or greater 0.0%
PHP version 4.3 or greater, MySQL version 4.1.2 or greater 100.0%
PHP version 4.4.9 or greater, MySQL version 5.1 or greater 0.0%
PHP version 4.3 or greater, MySQL version 5.1 or greater 0.0%
You can limit the number of revisions WordPress stores by _____ <b>Note:</b> Categories must have distinct slugs. Even if two categories have different parents and would therefore have different p...
adding the following line to your wp-config.php file: define('WP_POST_REVISIONS', 3); 54.0%
using a plugin 14.0%
changing a setting on admin panel 30.0%
How do you enable debug mode in WP?
By going to Dashboard > Settings > General and then enable debug mode
By setting WP_DEBUG as true in wp-config.php
It is enabled by default
Which of the following is not a default image size in WP?
Small Size
Medium Size
Large Size
Thumbnail Size
What is the name of table in database which stores custom fields data?
wp_custommeta
wp_options
wp_terms
wp_postmeta
Which concept does WordPress uses to control user access to different features?
Username
Access tokens
Role
Cookies
What can the Contributor role do?
Moderate comments
Publish posts
Edit posts
Edit pages
How do you enable the Network Setup menu item(enable Multisite) in Wordpress?
Install WP MU plugin
Activate WP Multisite in Settings menu
Set WP_ALLOW_MULTISITE as true in wp-config.php
WP MU has been discontinued as a separate project so there is no way to set up multisites in WP now
It allows managing the user information such as changing the role of the users to (subscriber, contributor, author, editor or administrator), create or delete the user, change the password and user information. The main part of the user manager is Authentication.
It not allows managing the user information such as changing the role of the users to (subscriber, contributor, author, editor or administrator), create or delete the user, change the password and user information. The main part of the user manager is Authentication.
It allows managing the user information such as changing the role of the users to (subscriber, contributor, pulgin, author, editor or administrator), create or delete the user, change the password and user information. The main part of the user manager is Authentication.
It allows managing the user information such as changing the role of the users to (subscriber, contributor, plugin, theme, author, editor or administrator), create or delete the user, change the password and user information. The main part of the user manager is Authentication.
How to style each list item background of the wordpress navigation seperately.
nav li:nth-child(1).current-menu-item {
background-color: red;
}
nav li:nth-child(2).current-menu-item {
background-color: blue;
}
nav li:nth-child(3).current-menu-item {
background-color: green;
}
nav li:nth-childs(1).current-menu-item {
background-color: red;
}
nav li:nth-childs(2).current-menu-item {
background-color: blue;
}
nav li:nth-childs(3).current-menu-item {
background-color: green;
}
nav li:nth-first-child(1).current-menu-item {
background-color: red;
}
nav li:nth-second-child(2).current-menu-item {
background-color: blue;
}
nav li:nth-last-child(3).current-menu-item {
background-color: green;
}
All of the above
What are WordPress hooks?
Setting options available to WordPress administrators.
Security functions that run inside Wordpress.
Group of plugins which control WordPress behavior.
Ways to change the default behavior of WordPress.
If you need to store information temporarily, which WordPress system would you use:
Options
Meta tables
Transients
The REST API
Which one of the following files is located in the root of your WordPress installation directory and contains your website's setup details, such as database connection info?
setup.html
wp-setup.php
wp-config.php
wp-install.php
Which of the following is not a default user role in WP?
Blogger
Author
Subscriber
Contributor
Which constant is NOT recognized in wp-config.php?
WP_SITEURL
WP_CONTENT_DIR
WP_CONTENT_URL
WP_HOME_URL
Which WP global object is used to execute custom database queries?
$wpdb
$wp_db
$db_query
$wp_query
Select all the default taxonomies in WordPress.
post_category
post_tag
link_category
product_tag
post_format
category
Permalinks are the permanent URLs to your individual weblog posts, as well as categories and other lists of weblog postings.
The numeric IP address of your WordPress site.
The complete URL of your WordPress site.
A popular WordPress plugin.
Pick the correct default Post Types readily available to users or internally used by the WordPress installation.
Post
Page
Blog
Media
Archive
Category
Is it possible to create posts programmatically?
No
Yes, with wp_insert_post() function
Yes, with wp_add_post() function
Yes, with wp_create_post() function
What is the default table prefix in WP?
What WordPress function would you use to retrieve the name of the current action?
current_filter
current_action_name
current_hook
Which of the following is true about wp_mail() function?
A true return value does not automatically mean that the user received the email successfully.
For this function to work, the settings SMTP and smtp_port (default: 25) need to be set in your php.ini file.
The default content type allows using HTML.
The function can handle only one email as $to parameter.
How you can create a static page with WordPress?
To create a static page in wordpress, in the page section you have to upload a php files to the server in the theme folder, and then select that as your template. This allows you to add any page and look that you wanted for your blog and it will remain static
To create a static page in wordpress, WordPress is no doubt a good CMS, but Drupal and Joomla are among the best CMS you can work with
Theme selection differs according to the requirement, but an ideal theme would be something that would not restrict to use the number of pages, plugins or static homepage
All of the above
Which of the following is the correct way to register shortcode?
function foobar_func( $atts ){
return "foo and bar";
}
new_shortcode( 'foobar', 'foobar_func' );
function foobar_func( $atts ){
return "foo and bar";
}
insert_shortcode( 'foobar', 'foobar_func' );
function foobar_func( $atts ){
return "foo and bar";
}
register_shortcode( 'foobar', 'foobar_func' );
function foobar_func( $atts ){
return "foo and bar";
}
add_shortcode( 'foobar', 'foobar_func' );
How to get all existing tags outside the loop in Wordpress?
$tag = get_tag();
$html = '<div class="post_tags">';
foreach ( $tag as $tags ) {
$tag_link = get_tag_link( $tags->term_id );
$html .= "<a href='{$tag_link}' title='{$tag->name} Tag' class='{$tag->slug}'>";
$html .= "{$tag->name}</a>";
}
$html .= '</div>';
echo $html;
$tags = get_tags();
$html = '<div class="post_tags">';
foreach ( $tags as $tag ) {
$tag_link = get_tag_link( $tag->term_id );
$html .= "<a href='{$tag_link}' title='{$tag->name} Tag' class='{$tag->slug}'>";
$html .= "{$tag->name}</a>";
}
$html .= '</div>';
echo $html;
$tag = get_tag();
$html = '<div class="post_tags">';
foreach ( $tag as $tags ) {
$tag_link = get_tag_link( $tag->term_id );
$html .= "<a href='{$tag_link}' title='{$tag->name} Tag' class='{$tag->slug}'>";
$html .= "{$tag->name}</a>";
}
$html .= '</div>';
echo $html;
All of the above
Which HTML tags are not allowed to be used in a post comment?
code
form
img
strike
table
What does wp_rand() function?
Gets random post ID.
Gets random category ID.
Generates a random post ID for wp_insert_post() function.
Generates a random number.