34 add_filter(
'gravityview/edit_entry/field_blocklist', array( $this,
'edit_entry_field_blocklist' ), 10, 2 );
36 add_action(
'gravityview/edit_entry/after_update', array( $this,
'clear_product_info_cache' ), 10, 3 );
38 parent::__construct();
60 gform_delete_meta( $entry_id,
'gform_product_info__' );
61 gform_delete_meta( $entry_id,
'gform_product_info__1' );
62 gform_delete_meta( $entry_id,
'gform_product_info_1_' );
63 gform_delete_meta( $entry_id,
'gform_product_info_1_1' );
72 _deprecated_function( __METHOD__,
'2.14',
'GravityView_Field_Product::edit_entry_field_blocklist' );
115 $hide_product_fields = (bool) apply_filters(
'gravityview/edit_entry/hide-product-fields', $has_transaction_data );
117 return $hide_product_fields;
Modify field settings by extending this class.
static has_product_field( $form=array())
Check whether a form has product fields.
clear_product_info_cache( $form=array(), $entry_id=0, $Edit_Entry_Render=null)
If the edited entry has a product field and the fields are shown, remove entry purchase cache...
static entry_has_transaction_data( $entry=array())
Check if an entry has transaction data.
should_hide_product_fields( $entry=array())
In Edit Entry, should Product fields be hidden? If entry has transaction data, they should be...
edit_entry_field_blacklist( $blocklist=array(), $entry=array())
2.14
if(gravityview() ->plugin->is_GF_25()) $form
static get_product_field_types()
Return array of product field types.
new GravityView_Field_Product
edit_entry_field_blocklist( $blocklist=array(), $entry=array())
Maybe add Product fields to the Edit Entry blocklist.