Skip to content

Expose add_to_blog, new_role, and blog_id fields in signup list and get - #630

Open
swissspidy wants to merge 1 commit into
mainfrom
add/signup-fields
Open

Expose add_to_blog, new_role, and blog_id fields in signup list and get#630
swissspidy wants to merge 1 commit into
mainfrom
add/signup-fields

Conversation

@swissspidy

Copy link
Copy Markdown
Member

Exposes add_to_blog, new_role, and blog_id as available fields for wp user signup list and wp user signup get, and enables filtering by them.

  • Unserializes signup meta properties so add_to_blog and new_role are accessible as fields.
  • Aliases add_to_blog and blog_id to allow querying and filtering by either name.
  • Updates filtering logic in Signup_Command::list_() to support filtering by --new_role, --blog_id, and --add_to_blog.
  • Added acceptance test scenarios covering field output and filtering.

Closes #629

@swissspidy
swissspidy requested a review from a team as a code owner July 29, 2026 10:15
@swissspidy swissspidy added this to the 2.8.13 milestone Jul 29, 2026
@github-actions github-actions Bot added command:network-meta Related to 'network meta' command command:network-meta-get Related to 'network meta get' command command:network-meta-list Related to 'network meta list' command command:network-meta-update Related to 'network meta update' command labels Jul 29, 2026
@coderabbitai

coderabbitai Bot commented Jul 29, 2026

Copy link
Copy Markdown

Caution

Review failed

An error occurred during the review process. Please try again later.


Comment @coderabbitai help to get the list of available commands.

@codecov

codecov Bot commented Jul 29, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 95.23810% with 1 line in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/Signup_Command.php 95.23% 1 Missing ⚠️

📢 Thoughts on this report? Let us know!

@swissspidy swissspidy added command:user-signup Related to 'user signup' command command:user-signup-get Related to 'user signup get' command command:user-signup-list Related to 'user signup list' command and removed command:network-meta Related to 'network meta' command command:network-meta-get Related to 'network meta get' command command:network-meta-list Related to 'network meta list' command command:network-meta-update Related to 'network meta update' command labels Jul 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

command:user-signup Related to 'user signup' command command:user-signup-get Related to 'user signup get' command command:user-signup-list Related to 'user signup list' command

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Please expose add_to_blog and new_role as fields in signup

1 participant