• Hooks
  • About this website
  • Examples
  • Request Form
New Feature! Check differences between versions
WordPress Hooks
  • Hooks
  • About this website
  • Examples
  • Request Form
  • Hooks
  • About this website
  • Examples
  • Request Form
New Feature! Check differences between versions
  1. Home
  2. Examples
  3. woocommerce_is_purchasable
  4. How to Hide ‘Add to Cart’ Button in WooCommerce

How to Hide ‘Add to Cart’ Button in WooCommerce

woocommerce_is_purchasable
add_filter( 'woocommerce_is_purchasable', '__return_false');

Source:

The RIGHT Way to Hide
There are several ways to hide the Add to Cart button in WooCommerce. You can use PHP, JS or CSS. But even with PHP the right way is not as obvious as it seems.
wisdmlabs.com

 

Share this:

  • Tweet

Like this:

Like Loading...

Comments on this post

No comments.

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Trackbacks and Pingbacks on this post

No comments.

TrackBack URL
  • About WordPress Hooks
  • Check differences between versions
  • Request Form
  • Links
  • Privacy Policy

Examples

  • Customize new user notification email
  • How to Hide ‘Add to Cart’ Button in WooCommerce
  • How to change WooCommerce Products post type name
  • Override translations
  • Contact Form 7 change text of select include_blank

Subscribe

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 301 other subscribers

Recent Comments

  • wphooks on woocommerce_checkout_update_customer_data
  • Ilori Olaitan Adedapo on wp_handle_upload_prefilter
  • 【解決】WordPressのギャラリー画像のグレーの枠線を非表示にする方法【カスタマイズ】 | deco8 blog on gallery_style
  • Radoslav on woocommerce_product_review_comment_form_args
  • Wp_ - Wp_Login() | Function | Wordpress Developer Resources on wp_login

WordPress Core

  • wordpress-5.7
  • wordpress-5.6.2
  • wordpress-5.6.1
  • wordpress-5.6
  • wordpress-5.5.3
  • wordpress-5.5.2
  • wordpress-5.5.1
  • wordpress-5.5
  • wordpress-5.4.2
  • wordpress-5.4.1
  • wordpress-5.4
  • wordpress-5.3.2
  • wordpress-5.3.1
  • wordpress-5.3
  • wordpress-5.2.4
  • wordpress-5.2.3
  • wordpress-5.2.2
  • wordpress-5.2.1
  • wordpress-5.2
  • wordpress-5.1.1
  • wordpress-5.1
  • wordpress-5.0.3
  • wordpress-5.0.2
  • wordpress-5.0.1
  • wordpress-5.0
  • wordpress-4.9.8
  • wordpress-4.9.7
  • wordpress-4.9.6
  • wordpress-4.9.5
  • wordpress-4.9.4
  • wordpress-4.9
  • wordpress-4.8
  • wordpress-4.4
  • wordpress-4.0

Plugins

  • advanced-ads
  • advanced-custom-fields
  • akismet
  • all-in-one-seo-pack
  • all-in-one-wp-migration
  • amr shortcode any widget
  • atum-stock-manager-for-woocommerce
  • autoptimize
  • bbpress
  • block-bad-queries
  • block-lab
  • buddypress
  • bulk-delete
  • classic-editor
  • cmb2
  • code-snippets
  • contact-form-7
  • custom-field-template
  • custom-fields-gutenberg
  • custom-post-type-cleanup
  • customizer-export-import
  • download-monitor
  • duplicate-post
  • duplicator
  • elementor
  • enlighter
  • fast-velocity-minify
  • flamingo
  • gianism
  • google-site-kit
  • google-sitemap-generator
  • gutenberg
  • health-check
  • jetpack
  • learnpress
  • limit-login-attempts
  • manage-notification-emails
  • mw-wp-form
  • mycred
  • ns-cloner-site-copier
  • order-hours-scheduler-for-woocommerce
  • redirection
  • regenerate-thumbnails
  • search-and-replace
  • search-meter
  • show-hooks
  • simple-membership
  • simple-slug-translate
  • siteguard
  • siteorigin-panels
  • snow-monkey-blocks
  • ssl-insecure-content-fixer
  • super-progressive-web-apps
  • taxonomy-terms-order
  • tinymce-advanced
  • w3-total-cache
  • woo-additional-terms
  • woocommerce
  • woocommerce-delivery-notes
  • wordfence
  • wordpress-https
  • wordpress-seo
  • wp-associate-post-r2
  • wp-cfm
  • wp-dark-mode
  • wp-mail-catcher
  • wp-migrate-db
  • wp-multibyte-patch
  • wp-nested-pages
  • wp-page-widget
  • wp-rollback
  • wp-stateless
  • wp-super-cache

Themes

  • twentyseventeen
Running on Conoha VPS

Subscribe

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

  • twitter
WordPress Hooks. wp-plugin-api.com

  • Hooks

  • About

  • Examples

  • Request Form
%d bloggers like this: