26. "He got tired of seeing the admin notice reminding him to
install WooCommerce pages and presses the skip button
instead of the install pages button"
fml
31. When left to their own devices in a new space without any
sense of direction or purpose, many users can feel lost,
overwhelmed, and confused about what they're supposed to
be doing there
Whitney Hess
37. add_action( 'admin_notices', 'just_a_test_notice' );
function just_a_test_notice() {
// Possible classnames: updated, error, is-dissmissible
echo '<div class="notice">';
// Your notice text (html)
echo '<p>Hello World</p>';
// Close notice div
echo '</div>';
}
38.
39. <?php
/**
* Plugin Name: Plugin with Dependency
* Description: Just an example
* Version: 0.1
* Author: Mike Jolley
*/
class WP_Plugin_With_Dependency {
/**
* Constructor
*/
public function __construct() {
add_action( 'plugins_loaded', array( $this, 'check_for_dependency' ) );
}
/**
* Check for existence of dependency after plugins are loaded
*/
public function check_for_dependency() {
if ( class_exists( 'WP_Job_Manager' ) ) {
// Do regular plugin stuff...
} else {
add_action( 'admin_notices', array( $this, 'dependency_notice' ) );
}
}
...
40. public function dependency_notice() {
// If the user can install plugins, let them with 1 click, otherwise link to .org
if ( current_user_can( 'install_plugins' ) ) {
$url = wp_nonce_url( self_admin_url( 'update.php?action=install-plugin&plugin=wp-job-manager' ), 'install-plugin_wp-job-manager' );
} else {
$url = 'http://wordpress.org/plugins/wp-job-manager';
}
// Show the notice
echo '<div id="message" class="notice updated">';
echo '<p>' . __( 'Plugin with Dependency requires WP Job Manager to function.' ) . '</p>';
echo '<p class="submit"><a href="' . esc_url( $url ) . '" class="button-primary">' . __( 'Install WP Job Manager' ) . '</a></p>';
echo '</div>';
}
60. Blank states are an opportunity for you to provide a warm
and human experience to your product, instead of literally
saying, “Your dashboard is empty and that’s all I’m going to
say.”
Samuel Hulick
70. "when target users understand it's behavior and effect
without use of reason, memorization, experimentation,
assistance, or training"
Everett McKay
71. 4 Follow familiar WordPress UI and design patterns
4 Never rely on a user manual to explain something
4 Use clear, consise wording in descriptions and
contextual help
4 Remove distractions/simplify
4 Make processes as efficient as possible
74. The biggest problem is that I’m not sure it’s very intuitive as
to what the users should do next. Do they go to the next
tab? Is the name “field settings” clear enough...
- James Laws - WP Ninjas