Changeset 29115
- Timestamp:
- 07/12/2014 12:07:18 AM (12 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/user.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/user.php
r29102 r29115 1253 1253 * 1254 1254 * The available arguments are as follows: 1255 * <ol>1256 * <li>show_option_all - Text to show all and whether HTML option exists.</li>1257 * <li>show_option_none - Text for show none and whether HTML option exists.</li>1258 * <li>option_none_value - Value to use when no option is selected.</li>1259 * <li>hide_if_only_one_author - Don't create the dropdown if there is only one user.</li>1260 * <li>orderby - SQL order by clause for what order the users appear. Default is 'display_name'.</li>1261 * <li>order - Default is 'ASC'. Can also be 'DESC'.</li>1262 * <li>include - User IDs to include.</li>1263 * <li>exclude - User IDs to exclude.</li>1264 * <li>multi - Default is 'false'. Whether to skip the ID attribute on the 'select' element. A 'true' value is overridden when id argument is set.</li>1265 * <li>show - Default is 'display_name'. User table column to display. If the selected item is empty then the user_login will be displayed in parentheses</li>1266 * <li>echo - Default is '1'. Whether to display or retrieve content.</li>1267 * <li>selected - Which User ID is selected.</li>1268 * <li>include_selected - Always include the selected user ID in the dropdown. Default is false.</li>1269 * <li>name - Default is 'user'. Name attribute of select element.</li>1270 * <li>id - Default is the value of the 'name' parameter. ID attribute of select element.</li>1271 * <li>class - Class attribute of select element.</li>1272 * <li>blog_id - ID of blog (Multisite only). Defaults to ID of current blog.</li>1273 * <li>who - Which users to query. Currently only 'authors' is supported. Default is all users.</li>1274 * </ol>1275 1255 * 1276 1256 * @since 2.3.0 … … 1278 1258 * @global wpdb $wpdb WordPress database object for queries. 1279 1259 * 1280 * @todo Hash-notate arguments array. 1281 * 1282 * @param string|array $args Optional. Array of user arguments. 1260 * @param array|string $args { 1261 * Optional. Array or string of arguments to generate a drop-down of users. 1262 * {@see WP_User_Query::prepare_query() for additional available arguments. 1263 * 1264 * @type string $show_option_all Text to show as the drop-down default (all). 1265 * Default empty. 1266 * @type string $show_option_none Text to show as the drop-down default when no 1267 * users were found. Default empty. 1268 * @type int|string $option_none_value Value to use for $show_option_non when no users 1269 * were found. Default -1. 1270 * @type string $hide_if_only_one_author Whether to skip generating the drop-down 1271 * if only one user was found. Default empty. 1272 * @type string $orderby Field to order found users by. Accepts user fields. 1273 * Default 'display_name'. 1274 * @type string $order Whether to order users in ascending or descending 1275 * order. Accepts 'ASC' (ascending) or 'DESC' (descending). 1276 * Default 'ASC'. 1277 * @type array|string $include Array or comma-separated list of user IDs to include. 1278 * Default empty. 1279 * @type array|string $exclude Array or comma-separated list of user IDs to exclude. 1280 * Default empty. 1281 * @type bool|int $multi Whether to skip the ID attribute on the 'select' element. 1282 * Accepts 1|true or 0|false. Default 0|false. 1283 * @type string $show User table column to display. If the selected item is empty 1284 * then the 'user_login' will be displayed in parentheses. 1285 * Accepts user fields. Default 'display_name'. 1286 * @type int|bool $echo Whether to echo or return the drop-down. Accepts 1|true (echo) 1287 * or 0|false (return). Default 1|true. 1288 * @type int $selected Which user ID should be selected. Default 0. 1289 * @type bool $include_selected Whether to always include the selected user ID in the drop- 1290 * down. Default false. 1291 * @type string $name Name attribute of select element. Default 'user'. 1292 * @type string $id ID attribute of the select element. Default is the value of $name. 1293 * @type string $class Class attribute of the select element. Default empty. 1294 * @type int $blog_id ID of blog (Multisite only). Default is ID of the current blog. 1295 * @type string $who Which type of users to query. Accepts only an empty string or 1296 * 'authors'. Default empty. 1297 * } 1283 1298 * @return string|null Null on display. String of HTML content on retrieve. 1284 1299 */
Note: See TracChangeset
for help on using the changeset viewer.