Upwork WordPress Test
1. Which of the following will hash a string/password to its md5 equivalent? Answers: • md5() • wp_generate_password() • wp_generate_md5() • password_md5() 2. 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 front-end page). Answers: • my_admin() • view_admin() • is_admin() • root_admin() 3. Which of the following functions are used to add administration menu item in WordPress ? Answers: • add_menu_page(); • add_admin_item(); • add_admin_page(); • add_admin_option(); 4. Which of the following WordPress Multisite functions allows for getting content from one blog and display it on another? Answers: • switch_blog() • switch_to_blog() • restore_current_blog() • restore_to_current_blog() 5. What is the BEST way to get last inserted row ID from Wordpress database ? ...