$defaults = shortcode_atts( array( 'fields' => array(), // Default will contain an array of the defined profile fields. 'id' => $user_id, // Default will contain the current user ID. 'div' => true, 'div_id' => '', 'div_class' => 'field-name', 'span' => false, 'span_id' => '', 'span_class' => '', 'avatar' => '80', 'labels' => $this->settings['show_labels'], 'show_empty' => $this->settings['show_empty'], 'user_label_before' => '', 'user_label_after' => '', 'user_field_before' => '', 'user_field_after' => '', 'main_div_before' => '<div id="user-list-profile">', 'main_div_after' => '</div>', ), $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.