A customizable, open-source ecommerce platform built on WordPress. Build any commerce solution you can imagine.
Go to file
Ian Jenkins 2340f269cf Add support for custom attributes to wc_placeholder_img().
When displaying a list of images you often want a specific class to be
attached to each image, therefore you pass through a custom class using
the attr parameter. Unfortunately this doesn't get passed through to a
placeholder image should one be needed. This means that, for example, if
you're custom class center an image or something, it won't be honoured
for placeholders, which can lead to some wonky image listings.

You can work around this currently by leverging the
`woocommerce_product_get_image` filter, but it's a bit gnarly as you
need to do some regexing or string splitting or something and checking
class names and what not. This provides a much easier way, by
supporting custom attrs on placeholder images as is the case for non
placehodler images.
2019-10-30 15:08:19 +00:00
.github Update links to bug report and feature request issue templates 2019-10-17 16:28:01 -03:00
.wordpress-org Update screenshots 2019-04-24 12:27:53 -03:00
assets Merge pull request #24832 from woocommerce/fix/24731 2019-10-15 17:47:52 +05:30
bin improve domain replacement for blocks package 2019-09-26 17:24:42 -04:00
i18n Add UM states 2019-10-14 11:33:52 -03:00
includes Add support for custom attributes to wc_placeholder_img(). 2019-10-30 15:08:19 +00:00
packages Add note on unit tests 2019-06-26 15:17:52 +01:00
sample-data Update shopmanager display name 2019-01-16 16:01:39 +02:00
src Add integration tests 2019-06-25 15:57:44 +01:00
templates Updated wording of total of items in cart order table 2019-10-18 14:50:04 +03:00
tests Add support for custom attributes to wc_placeholder_img(). 2019-10-30 15:08:19 +00:00
.babelrc Initial easy test setup 2017-02-28 12:00:12 -08:00
.codeclimate.yml Remove references to apigen from configuration files 2019-06-28 10:20:30 -03:00
.codecov.yml Attempt to reduce noise in PRs generated by codecov 2018-08-23 17:40:35 -03:00
.editorconfig HTTPS for everybody 2016-05-26 22:48:49 -03:00
.eslintignore Ignore vendor files 2018-11-06 15:31:12 -05:00
.eslintrc Update Gruntfile to make use of node-sass when calling grunt-sass. 2019-01-30 10:12:08 +02:00
.gitattributes Remove references to apigen from configuration files 2019-06-28 10:20:30 -03:00
.gitignore Update from master 2019-07-10 12:57:02 +01:00
.jshintrc Grunt dev 2019-03-15 12:21:51 +00:00
.scrutinizer.yml Remove references to apigen from configuration files 2019-06-28 10:20:30 -03:00
.stylelintrc Updated .stylelintrc config 2018-11-19 19:08:08 -02:00
.travis.yml Remove PHP 7.4 job from the list of Travis jobs allowed to fail 2019-09-23 14:38:27 -03:00
CHANGELOG.txt Move 3.7 changelog out of changelog.txt and back into readme.txt 2019-08-02 13:15:25 +02:00
CODE_OF_CONDUCT.md Fixed a typo 2017-06-19 16:22:40 -03:00
Gruntfile.js Exclude renovate-bot 2019-08-30 14:10:37 -03:00
README.md Add a link to the wiki in the README.md file 2019-07-26 15:08:29 -03:00
composer.json Update dependency woocommerce/woocommerce-sniffs to v0.0.8 2019-10-16 18:56:42 +00:00
composer.lock Update dependency woocommerce/woocommerce-sniffs to v0.0.8 2019-10-16 18:56:42 +00:00
license.txt update license/readme URLs to HTTPS where appropriate 2019-05-16 09:32:06 -03:00
package-lock.json Update dependency config to v3.2.4 2019-10-25 18:34:34 +00:00
package.json Update dependency config to v3.2.4 2019-10-25 18:34:34 +00:00
phpcs.xml Merge branch 'master' into feature/feature-plugin-packages 2019-07-08 14:33:21 -03:00
phpunit.xml Exclude new packages and vendor folders from unit tests 2019-07-29 11:20:58 +02:00
readme.txt Remove changelog entry because commit was reverted. 2019-10-27 18:18:16 +02:00
renovate.json Update renovate config to bump versions but avoid pins 2019-10-01 14:18:03 +01:00
uninstall.php Merge branch 'master' into update/erasure-requests 2018-05-02 14:06:47 +01:00
woocommerce.php Update version to 3.8-beta.1 2019-10-03 12:07:16 +05:30

README.md

WooCommerce

license Latest Stable Version WordPress.org downloads WordPress.org rating Build Status Scrutinizer Code Quality codecov

Welcome to the WooCommerce repository on GitHub. Here you can browse the source, look at open issues and keep track of development. We recommend all developers to follow the WooCommerce development blog to stay up to date about everything happening in the project. You can also follow @DevelopWC on Twitter for the latest development updates.

If you are not a developer, please use the WooCommerce plugin page on WordPress.org.

Documentation

Reporting Security Issues

To disclose a security issue to our team, please submit a report via HackerOne here.

Support

This repository is not suitable for support. Please don't use our issue tracker for support requests, but for core WooCommerce issues only. Support can take place through the appropriate channels:

Support requests in issues on this repository will be closed on sight.

Contributing to WooCommerce

If you have a patch or have stumbled upon an issue with WooCommerce core, you can contribute this back to the code. Please read our contributor guidelines for more information how you can do this.