Skip to content

Conversation

@jonathanbossenger
Copy link
Contributor

Updates the example with something simpler

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates the documentation example in the introduction to demonstrate a simpler use case. Instead of showing how to create a blog post, the example now demonstrates retrieving WordPress site information, which requires fewer input parameters and showcases read-only functionality.

  • Replaces the post creation example with a site information retrieval example
  • Fixes a syntax error in the action hook callback (backticks to single quotes)
  • Updates the permission callback to use manage_options capability

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@jonathanbossenger jonathanbossenger marked this pull request as ready for review August 22, 2025 15:38
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copy link
Member

@gziolo gziolo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works for me 👍

@gziolo gziolo added the [Type] Developer Documentation Improvements or additions to documentation label Aug 25, 2025
@gziolo gziolo changed the title Update 1.intro.md Update an example in Introduction & Overview document Aug 25, 2025
@gziolo gziolo merged commit ad22938 into trunk Aug 25, 2025
15 checks passed
@gziolo gziolo deleted the jonathanbossenger-patch-1 branch August 25, 2025 06:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Type] Developer Documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants