![]() Following these guidelines helps to communicate that you respect the time of other contributors on the project. Read through our contributing guidelines in the handbook for a thorough introduction to how you can get involved. 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. It’s because of you, and the community around you, that WP-CLI is such a great project.Ĭontributing isn’t limited to just code. We appreciate you taking the initiative to contribute to WP-CLI. Browse the internal API docs to discover a variety of helpful functions you can use in your custom WP-CLI command. Read the commands cookbook to learn more. It’s easier than it looks to create a custom WP-CLI command. */ $delete_option_cmd = function ( $args ) WP_CLI :: add_command ( 'option delete', $delete_option_cmd ) * Returns an error if the option didn't exist. WP_CLI::add_command() ( doc) is used for both internal and third-party command registration. It reads usage details from the callback’s PHPdoc. WP-CLI supports registering any callable class, function, or closure as a command. ExtendingĪ command is the atomic unit of WP-CLI functionality. Please be respectful, and set your expectations accordingly. Remember, libre != gratis the open source license grants you the freedom to use and modify, but not commitments of other people’s time. ![]() Twitter isn’t an acceptable venue for support because: 1) it’s hard to hold conversations in under 280 characters, and 2) Twitter isn’t a place where someone with your same question can search for an answer in a prior conversation. Please do not ask support questions on Twitter. Before submitting a bug report, please review our best practices to help ensure your issue is addressed in a timely manner. GitHub issues are meant for tracking enhancements to and bugs of existing commands, not general support.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |