This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Always show the field label by default. | |
* | |
* @param array $field_options Default field options for each field in View Configuration screen. | |
* | |
* @return array | |
*/ | |
add_filter( 'gravityview_template_field_options', function( $field_options ) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Example of how to add a sample event source. | |
* | |
* @param array $sources The array of event sources. { | |
* @type string $url The URL of the event source. | |
* @type string $type The type of event source. Either `ics` or `json`. | |
* @type string $color The color of the event source. | |
* } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @filter `gravityview-inline-edit/jquery-ui-theme` Modify the jQuery UI theme to use, if jQuery UI editor style is active | |
* | |
* @since 1.0 | |
* | |
* @param string $jquery_ui_theme Name of jQuery UI theme to use. Default: "base" | |
* | |
* @see http://jqueryui.com/themeroller/#themeGallery for examples |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Adds a CSS class for each user role. | |
* | |
* @param string $class The existing class. | |
* @param \GV\Template_Context The context. | |
* | |
* @return string The modified class, which will be sanitized by {@see gravityview_sanitize_html_class()} after return. | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* GravityView doesn't trigger the `gform_after_submission` action when editing entries. This does that, | |
* but ONLY FOR FORM #12. | |
* | |
* @param array $form | |
* @param int $entry_id ID of the entry being updated | |
* @param GravityView_Edit_Entry_Render $object | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter( 'gravityview/edit_entry/form_fields', 'gravityview_edit_entry_dont_require_fields' ); | |
/** | |
* Remove the "required" setting from Gravity Forms fields in GravityView Edit Entry | |
* | |
* @return GF_Field[] | |
*/ | |
function gravityview_edit_entry_dont_require_fields( $fields ) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* GravityView - Filter Entry Notes by Gravity Flow Assignee. | |
* @license https://opensource.org/license/gpl-2-0/ GPL-2.0 | |
*/ | |
apply_filters( 'gravityview/entry_notes/get_notes', 'filter_gravityview_notes_by_gravity_flow_assignee', 10, 2 ); | |
/** | |
* Filter the notes by Gravity Flow assignee. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php // DO NOT COPY THIS LINE | |
add_filter( 'gravityview/entry_notes/get_notes', 'gv_remove_entry_approval_notes', 10, 2 ); | |
function gv_remove_entry_approval_notes( $notes, $entry_id ) { | |
foreach($notes as $key => $note){ | |
if (strpos( $note->value, 'WordPress') !== false){ | |
unset( $notes[ $key] ); | |
} | |
} | |
return $notes; |
NewerOlder