$defaults = shortcode_atts( array( 'display_style'=> 'list', // list|table 'role' => 'subsriber', // role to filter by 'active_only' => true, 'verified_only' => true, 'exclude' => '', // comma separated string of user ids 'number' => 10, // number to display per page 'search' => true, // is search enabled, "true" 'search_by' => '', // comma separated string of meta keys 'fields' => 'user_login,member_since', 'local_avatar' => false, // whether to use a local avatar or gravatar 'avatar' => 45, // size of the avatar in pixels 'h2' => 'first_last', // 'order_by' => 'user_login', 'order_meta' => '', 'order' => 'ASC', 'show_titles' => false, 'show_empty' => true, 'filter_key' => '', 'filter_value' => '', 'fe_user_edit' => false, ), $atts, $tag );
Not sure what to do with this code?
You're not a "coder" and don't know what to do? Don't worry! Code Snippets are the basic building blocks of WordPress customization, and once you know the basics, they are simple to use.
Here are some free articles to get you started:
- Using Code Snippets from the Site
- The functions.php File
- Create a plugin file for custom functions
- Create a child theme
- Do not modify plugin files!
For "hands on" help, consider a plugin support subscription or the Pro Bundle.