Contributions to Give are more than welcome.
By contributing code to Give, you agree to license your contribution under the GPL License.
Search our issue tracker for similar issues.
- Do not report potential security vulnerabilities here. Email them privately to our security team at security@givewp.com
- Specify the version number for Give.
- Describe the problem in detail. Explain what happened, and what you expected would happen.
- If helpful, include a screenshot. Annotate the screenshot for clarity.
If you would like to submit a pull request, please follow the steps below:
- Make sure you have a GitHub account
- Fork the repository on GitHub
- Make changes to your fork of the repository
- Ensure you stick to the WordPress Coding Standards
- When committing, reference your issue (if present) and include a note about the fix
- Push the changes to your fork and submit a pull request to the 'master' branch of the Give repository
- We ensure that every Give function is documented well and follows the standards set by phpDoc
- If you're adding/editing a function in a class, make sure to add
@access {private|public|protected}
- Finally, please use tabs and not spaces. The tab indent size should be 4 for all Give code.
At this point, you're waiting for us to merge your pull request. We'll review all pull requests, and make suggestions and changes if necessary.
We ensure that each change in JS files follows Javascript Coding Standards provided by WordPress.
$ npm install
- Open Terminal
- Type command in a format
$ eslint [options] file.js [file.js] [dir]
. - You'll get a list of suggestions.
For Example,
$ eslint yourfile.js
Follow the steps below to configure ESLint with PHPStorm:
- Go to PHPStorm
Preferences > Languages and Frameworks > Javascript > Code Quality Tools > ESLint
. - Now, Tick the
Enable
checkbox. - Set path for Node Interpreter and ESLint package, if its not set.
Open any JS file and you'll see suggestions from ESLint, if any.
That's all! You're done.
You can create an awesome PR if:
/wp-content/debug.log
is empty after testing code functionality.- Does not contain and testing code like
var_dump()
andconsole.log()
. - Passes all phpunit tests.
- No formatting issue when check formatting via
php_codesniffer
/eslint
withWordPress Coding Standard
. - Works fine on at least on PHP
5.3
and PHP7.*
- Plugin loads fine with your code on PHP
5.2