GravityView
2.17
The best, easiest way to display Gravity Forms entries on your website.
|
Public Member Functions | |
edit_entry_field_blacklist ( $blocklist=array(), $entry=array()) | |
2.14 More... | |
edit_entry_field_blocklist ( $blocklist=array(), $entry=array()) | |
Adds Coupon fields to Edit Entry field blocklist. More... | |
edit_entry_field_value ( $value, $field, $Edit_Entry_Render) | |
Set the coupon values for entries that have coupons applied. More... | |
should_hide_coupon_fields ( $entry=array()) | |
Should Coupon fields be hidden in Edit Entry? More... | |
Public Member Functions inherited from GravityView_Plugin_and_Theme_Hooks | |
__construct () | |
GravityView_Theme_Support constructor. More... | |
_wp_loaded () | |
Fired when all themes and plugins have been loaded. More... | |
merge_content_meta_keys ( $meta_keys=array(), $post=null, & $views=null) | |
Merge plugin or theme meta keys that store shortcode data with existing keys to check. More... | |
merge_meta_keys ( $meta_keys=array(), $post_id=0) | |
Merge plugin or theme meta keys that store shortcode data with existing keys to check. More... | |
merge_noconflict_scripts ( $handles) | |
Merge plugin or theme scripts with existing no-conflict scripts. More... | |
merge_noconflict_styles ( $handles) | |
Merge plugin or theme styles with existing no-conflict styles. More... | |
merge_post_type_support ( $supports=array(), $is_hierarchical=false) | |
Merge plugin or theme post type support definitions with existing support values. More... | |
Protected Member Functions | |
add_hooks () | |
Protected Member Functions inherited from GravityView_Plugin_and_Theme_Hooks | |
add_hooks () | |
Add filters for meta key and script/style handles, if defined. More... | |
Protected Attributes | |
$function_name = 'gf_coupons' | |
Protected Attributes inherited from GravityView_Plugin_and_Theme_Hooks | |
$class_name = false | |
string Optional. More... | |
$constant_name = false | |
string Optional. More... | |
$content_meta_keys = array() | |
Define the keys to be parsed by the gravityview/view_collection/from_post/meta_keys hook. More... | |
$function_name = false | |
string Optional. More... | |
$meta_keys = array() | |
Define the keys to be parsed by the gravityview/data/parse/meta_keys hook. More... | |
$post_type_support = array() | |
Define features in the admin editor used by the theme or plugin to be used when registering the GravityView post type. More... | |
$script_handles = array() | |
Define script handles used by the theme or plugin to be added to allowed no-conflict scripts. More... | |
$style_handles = array() | |
Define style handles used by the theme or plugin to be added to allowed no-conflict styles. More... | |
Definition at line 18 of file class-gravityview-plugin-hooks-gravity-forms-coupon.php.
|
protected |
Definition at line 29 of file class-gravityview-plugin-hooks-gravity-forms-coupon.php.
edit_entry_field_blacklist | ( | $blocklist = array() , |
|
$entry = array() |
|||
) |
2.14
Definition at line 63 of file class-gravityview-plugin-hooks-gravity-forms-coupon.php.
References $entry, and edit_entry_field_blocklist().
edit_entry_field_blocklist | ( | $blocklist = array() , |
|
$entry = array() |
|||
) |
Adds Coupon fields to Edit Entry field blocklist.
array | $blocklist | Array of field types |
array | $entry | Entry array of entry being edited in Edit Entry |
Definition at line 78 of file class-gravityview-plugin-hooks-gravity-forms-coupon.php.
References $entry, and should_hide_coupon_fields().
Referenced by edit_entry_field_blacklist().
edit_entry_field_value | ( | $value, | |
$field, | |||
$Edit_Entry_Render | |||
) |
Set the coupon values for entries that have coupons applied.
Uses $_POST hacks
string | $value | |
GF_Field_Coupon | $field | |
GravityView_Edit_Entry_Render | $Edit_Entry_Render |
Fake POST data so that the data gets pre-filled. Both are needed.
Definition at line 100 of file class-gravityview-plugin-hooks-gravity-forms-coupon.php.
References $entry, $field, GV\$form, $value, and should_hide_coupon_fields().
should_hide_coupon_fields | ( | $entry = array() | ) |
Should Coupon fields be hidden in Edit Entry?
array | $entry | Entry being edited in Edit Entry, if set |
gravityview/edit_entry/hide-coupon-fields
Should Coupon fields be hidden in Edit Entry? bool | $has_transaction_data | If true (the Entry has transaction data), hide the fields. Otherwise (false), show the Coupon field |
Definition at line 45 of file class-gravityview-plugin-hooks-gravity-forms-coupon.php.
References $entry, and GVCommon\entry_has_transaction_data().
Referenced by edit_entry_field_blocklist(), and edit_entry_field_value().
|
protected |
Definition at line 24 of file class-gravityview-plugin-hooks-gravity-forms-coupon.php.