disable / hide backorders option

We're shifting our Forum based support to a more dedicated support system!

We'll be closing our Forum support from 10th June, 2020 and move to Email Support assistance.

  • If you are a WCFM premium add-ons user, contact us- here
  • Want to know more before buying our add-ons? Send Pre sale queries- here
  • If you are a WCFM free user, please open a support ticket at WordPress.org
  • For WCFM App related queries, reach us- here
From now the forum will be read-only!

Viewing 2 reply threads
  • Author
    Posts
    • #58733
      d-n-13
      Participant

      Hello,

      I wanna hide backorders options and keep default “Do not allow”

      screenshot attached

      Thank You

      Attachments:
      You must be logged in to view attached files.
    • #58792
      WCFM Forum
      Keymaster

      HI,

      Use this code snippet –

      add_filter( 'wcfm_product_fields_stock', function( $stock_fields, $product_id, $product_type ) {
      	$stock_fields = wcfm_hide_field( 'backorders', $stock_fields );
        return $stock_fields;
      }, 50, 3 );

      Thank You

    • #59464
      d-n-13
      Participant

      Thanks

Viewing 2 reply threads
  • The topic ‘disable / hide backorders option’ is closed to new replies.