Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_filter( 'wcfm_product_manage_fields_general', function( $fields, $product_id, $product_type, $wcfm_is_translated_product = false, $wcfm_wpml_edit_disable_element = '' ) {
- if( isset( $fields['is_catalog'] ) ) {
- $fields['is_catalog']['dfvalue'] != 'yes';
- }
- return $fields;
- }, 101, 5 );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement