Skip to content

Commit aa8c90e

Browse files
Document primary_blog meta key for users
1 parent 431d10f commit aa8c90e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/User_Meta_Command.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,10 @@ public function list_( $args, $assoc_args ) {
131131
* # Get user meta
132132
* $ wp user meta get 123 bio
133133
* Mary is an WordPress developer.
134+
*
135+
* # Get the primary site of a user (for multisite)
136+
* $ wp user meta get 2 primary_blog
137+
* 3
134138
*/
135139
public function get( $args, $assoc_args ) {
136140
$args = $this->replace_login_with_user_id( $args );

0 commit comments

Comments
 (0)