Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add wp cli commands to get stats and delete stats #679

Merged

Conversation

pattonwebz
Copy link
Member

@pattonwebz pattonwebz commented Jun 24, 2024

This adds a setup to handle WP-Cli commands and adds a pair of commands to start with. It scopes them under a accessibility-checker command scope.

  • delete-stats request a post ID passed as the first positional argument
    • Delete stats for post with ID 123: wp accessibility-checker delete-stats 123
  • get-stats accepts a post ID passed as first positional argument
    • Get stats for post with ID 123: wp accessibility-checker get-stats 123
  • get-site-stats accepts no paramiters
    • Get the stats for all the scanned pages on the site: wp accessibility-checker get-site-stats

Closes: #674

@SteveJonesDev SteveJonesDev added enhancement New feature or request feature labels Jul 6, 2024
@SteveJonesDev SteveJonesDev added this to the v1.15.0 milestone Jul 6, 2024
@pattonwebz pattonwebz merged commit 58f82ce into develop Jul 12, 2024
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

WP-CLI Support
2 participants