mehrshaddarzi/wp-cli-reference-command
Composer 安装命令:
composer require mehrshaddarzi/wp-cli-reference-command
包简介
WordPress Code Reference Package for WP-CLI.
README 文档
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.
mehrshaddarzi/wp-cli-reference-command 适用场景与选型建议
mehrshaddarzi/wp-cli-reference-command 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 41 次下载、GitHub Stars 达 12, 最近一次更新时间为 2019 年 04 月 25 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 mehrshaddarzi/wp-cli-reference-command 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 mehrshaddarzi/wp-cli-reference-command 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 41
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 12
- 点击次数: 10
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-04-25

