Gerhard
0beadb3bab
Upate function @since to 3.6.0
2019-01-22 15:22:14 +02:00
Gerhard
f3d9eeeef3
Introduce wc_reviews_enabled, wc_review_ratings_enabled and wc_review_ratings_required as helper functions and update all places where options are accessed directly.
2019-01-17 08:04:57 +02:00
Roshan Sameer
c31b9acc8c
If wp_doing_ajax is defined return it ( #20421 )
...
* If wp_doing_ajax is defined return it
* Simplify the function exits check
2018-06-07 10:21:22 +01:00
Mike Jolley
f05f439c58
Page conditionals need to ensure the page exists/is set first
2018-05-03 10:23:36 +01:00
Claudio Sanches
0660a50e07
Removed obvious boolean results
2018-03-21 19:57:10 -03:00
Rodrigo Primo
52e067eeef
PHPCS fixes in includes/wc-conditional-functions.php
2018-03-13 08:33:48 -03:00
Claudio Sanches
2f6f6112c2
Merge branch 'master' into feature/webhook-crud
2017-12-07 18:21:52 -02:00
Mike Jolley
e343c99ccb
Remove is_shortcode_loop
2017-12-06 18:09:49 +00:00
Mike Jolley
8dcffa660e
Normalise get_query_results names and add new param for pagination
2017-12-06 13:13:43 +00:00
claudiulodro
d60456cc73
Resolve conflicts and bring up to date with master
2017-12-04 13:56:59 -08:00
Claudio Sanches
9fe0c7261e
Merge branch 'master' into feature/webhook-crud
2017-11-16 12:20:22 -02:00
Mike Jolley
4cb3a30a60
Fix default
2017-11-14 16:43:35 +00:00
Chase Wiseman
9558c49e72
Review tweaks
2017-11-09 09:26:17 -08:00
Chase Wiseman
5c57be18b0
Conditionally display the Add Payment Method button if there are available gateways
2017-11-01 10:13:01 -07:00
Claudio Sanches
714178996c
Remove duplicated function
2017-10-10 16:16:16 -03:00
Gerhard Potgieter
2080858dd4
Also check the woocommerce_checkout conditional, ensure ajax conditional checks keeps working. Closes #17094
2017-10-09 12:39:47 +02:00
Gerhard Potgieter
a815c62289
PHPCS fixes
2017-10-09 12:39:27 +02:00
claudiulodro
027e7b1f94
Add restored webhook
2017-04-27 11:44:57 -07:00
Thomas Geiger
5f6295264d
Adding WP filter to is_order_received_page()
...
Many plugins and themes rely on is_order_received_page() to include special codes when the user places an order. Some plugins however alter the flow: Klarna checkout for example uses a completely custom checkout flow, some other plugins adds the option to the user to specify a WP page as "the" order received page instead of the WooCommerce default. All those plugins break codes where is_order_received_page() is being used.
2017-02-16 07:00:16 +01:00
Mike Jolley
e0e0c9e832
Replace rating filters with taxonomy
2016-12-09 15:43:25 +00:00
Aristeides Stathopoulos
734f284fa4
WordPress.PHP.YodaConditions.NotYoda
2016-09-08 01:32:24 +03:00
Aristeides Stathopoulos
39d4d4bd69
Squiz.Commenting.DocCommentAlignment.SpaceBeforeStar
2016-09-02 05:40:36 +03:00
Mike Jolley
08941d41b2
Check is_singular when looking for shortcode content
...
Closes #11489
2016-07-21 13:17:35 +01:00
Mike Jolley
d74e5bd44d
Return bool
2016-06-06 17:51:41 +01:00
Mike Jolley
3dba3378c2
Merge pull request #10315 from woothemes/layered-nav-wp-query
...
Layered Nav Improvements
2016-02-12 11:59:40 +00:00
Mike Jolley
fab8a871aa
Merge branch 'master' into shipping-zones
...
# Conflicts:
# assets/css/admin.css
# includes/admin/class-wc-admin-assets.php
2016-02-10 14:12:39 +00:00
Mike Jolley
0dba78acc0
Remove use of global
2016-02-10 10:19:32 +00:00
Shiva Poudel
4543cb9da1
Renamed the function to wc_post_content_has_shortcode
2016-02-09 16:16:45 +05:45
Shiva Poudel
4f7858739d
Introduce function to check shortcode tag
2016-02-09 00:10:48 +05:45
Mike Jolley
564802a9c4
Enqueue scripts on pages with checkout shortcodes
...
Closes #10018
2016-02-08 12:21:34 +00:00
Mike Jolley
352184cc06
Merge branch 'master' into shipping-zones
...
# Conflicts:
# assets/css/admin.css
# i18n/languages/woocommerce.pot
# includes/abstracts/abstract-wc-payment-gateway.php
# includes/abstracts/abstract-wc-shipping-method.php
# includes/admin/settings/class-wc-settings-shipping.php
# includes/wc-core-functions.php
# uninstall.php
2016-02-05 14:58:48 +00:00
Claudio Sanches
578a5515e4
Introduces the is_edit_account_page() function
...
For #10103
2016-01-22 17:30:10 -02:00
Mike Jolley
1076854608
Merge branch 'master' into shipping-zones
...
# Conflicts:
# assets/css/admin.css
# includes/abstracts/abstract-wc-shipping-method.php
# includes/class-wc-shipping.php
# includes/shipping/flat-rate/class-wc-shipping-flat-rate.php
# includes/shipping/flat-rate/includes/class-wc-eval-math.php
# includes/shipping/free-shipping/class-wc-shipping-free-shipping.php
#
includes/shipping/legacy-international-delivery/class-wc-shipping-legacy
-international-delivery.php
#
includes/shipping/legacy-local-delivery/class-wc-shipping-legacy-local-d
elivery.php
2016-01-11 11:48:18 +00:00
Mike Jolley
ad11042afd
[2.4] Don't unforce SSL on secure blogs
...
@claudiosmweb can you check this and cherry pick if good to go?
Fixes #10029
2016-01-08 11:27:18 +00:00
Mike Jolley
97d47fb576
Move zones to main settings
2016-01-05 11:23:15 +00:00
mitogh
fb7de12235
Remove unnecessary use of ternary operator.
...
Since the operations are going to return the same values of true or
false after the evaluation of each statment it's easier just returing
the result of evaluation of those statements.
2015-11-17 00:08:06 -06:00
mitogh
85ea9c27ae
Update conditionals to follow the Yoda conditional style
2015-11-17 00:04:59 -06:00
Claudio Sanches
9a926aef4f
Updated wc_checkout_is_https() docblock
2015-11-09 23:08:10 -02:00
Claudio Sanches
5893875b0c
Removed period for file headers
2015-11-03 11:53:50 -02:00
Claudio Sanches
ee30b5b308
Fixed php docs standards
2015-11-03 11:31:20 -02:00
Mike Jolley
97e28d7f49
Added wc_checkout_is_https() function helper and added to simplify class
...
Closes #9408
2015-10-22 12:30:30 +01:00
Mike Jolley
973c3d1d7a
Tweak meta_is_product_attribute conditional to check for the existence of the get_variation_attributes method before running.
...
Closes #8660
2015-07-27 13:03:04 +01:00
Nicola Mustone
29e6082ab6
typo
2015-06-03 12:50:11 +02:00
Nicola Mustone
17eac9eaed
added filter wc_tax_enabled
2015-06-03 12:49:10 +02:00
Nicola Mustone
d2af01df5b
scrutinizer suggested tweaks
2015-03-27 16:15:40 +01:00
Mike Jolley
aa7067e84c
Merge pull request #7345 from shivapoudel/conditional-functions
...
Refactor the WC Conditional function coding standard
2015-03-18 10:32:31 +00:00
Mike Jolley
88be174037
[2.3] Support price filter min or max only.
...
Closes #7743
2015-03-17 15:34:15 +00:00
Mike Jolley
4171a20e29
Order again with custom attributes.
...
Fixes #7601
2015-03-09 15:50:13 +00:00
Mike Jolley
d2040eca4d
When updating shipping in cart, keep shipping calculator in DOM.
2015-02-11 23:25:31 +00:00
shivapoudel
20c5774e70
Refactor the WC Conditional function coding standard
2015-02-10 16:42:33 +05:45