mehrshaddarzi / wp-cli-reference-command
WordPress Code Reference Package for WP-CLI.
Installs: 40
Dependents: 0
Suggesters: 0
Security: 0
Stars: 12
Watchers: 5
Forks: 0
Open Issues: 0
Type:wp-cli-package
Requires
- php: ^5.5 || ^7.0
- ext-dom: *
- ext-json: *
- wp-packagist/wp-cli-helper: dev-master
Requires (Dev)
- phpunit/phpunit: ^4.8
- wp-cli/wp-cli: ^2.0
This package is auto-updated.
Last update: 2025-02-20 10:53:14 UTC
README
WordPress Code Reference in WP-CLI.
Quick links: Installation | Using | Contributing
Installation
You can install this package with:
wp package install mehrshaddarzi/wp-cli-reference-command
Installing this package requires WP-CLI v2 or greater. Update to the latest stable release with wp cli update
.
Using
NAME
wp reference
DESCRIPTION
WordPress Code Reference.
SYNOPSIS
wp reference <class|method|function|hook>
Search and show document
wp reference absint
result :
If your search results from more than one item. for example:
wp reference wp_insert_post
You will see a list to choose from.
Custom Search
By default WP_CLI reference package search between all WordPress class and functions.
If you want the custom search:
wp reference --class=wp_user
wp reference --funcion=wp_insert_post
wp reference --method=get_row
wp reference --hook=admin_footer
Show in Web Browser
You can show WordPress code reference in Web browser after search with:
wp reference --browser
Cache system
By default, WP-CLI cached 1000
last searches for speed result. if you want to remove reference cache:
wp cli cache clear
If you want only remove reference cache:
wp reference --clear
Author
- Mehrshad Darzi | PHP Full Stack and WordPress Expert
Contributing
We appreciate you taking the initiative to contribute to this project.
Contributing isn’t limited to just code. We encourage you to contribute in the way that best fits your abilities, by writing tutorials, giving a demo at your local meetup, helping other users with their support questions, or revising our documentation.
Reporting a bug
Think you’ve found a bug? We’d love for you to help us get it fixed. Before you create a new issue, you should search existing issues to see if there’s an existing resolution to it, or if it’s already been fixed in a newer version.
Creating a pull request
Want to contribute a new feature? Please first open a new issue to discuss whether the feature is a good fit for the project.
Once you've decided to commit the time to seeing your pull request through, please follow our guidelines for creating a pull request to make sure it's a pleasant experience:
- Create a feature branch for each contribution.
- Submit your pull request early for feedback.
- Follow PSR-2 Coding Standards.