/** * Function to add admin notices * @param string $message the error messag text * @param boolean $error html class - true for error false for updated * @param string $cap_check required capability * @param boolean $ignore_key ignore key * @return string HTML of admin notice * * @since 1.3 */ function wp_listings_admin_notice($message, $error = false, $cap_check = 'activate_plugins', $ignore_key = false) { $_wp_listings_admin = new WP_Listings_Admin_Notice(); return $_wp_listings_admin->notice($message, $error, $cap_check, $ignore_key); }