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 - 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; |
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 | |
/** | |
* Prevent Divi from using the "Grab the first post image" setting. | |
* | |
* It uses et_first_image() which uses apply_filters( 'the_content' ) which causes | |
* a conflict GravityView, which uses 'the_content' filter. | |
* | |
* @param bool $setting Is the setting enabled and the request is not Buddypress? | |
* |
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 | |
/** | |
* This is an example of modifying the appearance of a cell in DataTables based on the value. | |
* | |
* DO NOT USE THIS CODE WITHOUT MODIFICATION. | |
* | |
* @license https://www.gnu.org/licenses/gpl-2.0.html GPLv2 or later | |
* | |
* @param array $row The entry row HTML to be rendered in DataTables. |
NewerOlder