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 | |
/** | |
* Displays multiple "og:image" opengraph meta tags according to the single entry available gallery images | |
*/ | |
function my_gv_add_opengraph_multi_image() { | |
if( ! function_exists('gravityview_is_single_entry') || ! function_exists( 'gravityview_get_entry') ) { | |
return; | |
} | |
// get single entry id |
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_field_entry_value_list', 'gravityview_convert_list_items_to_links', 10, 4 ); | |
/** | |
* If there are URLs in a List field, convert them to links. Otherwise, display the original value. | |
* | |
* @param string $output HTML value output | |
* @param array $entry The GF entry array | |
* @param array $field_settings Settings for the particular GV field |
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 | |
/* | |
Plugin Name: Gravity Forms MailChimp Custom Export | |
Plugin URI: http://gravityview.co/ | |
Description: Custom plugin to force updated entries to be exported with the GF MailChimp add-on | |
Author: Katz Web Services, Inc. | |
Version: 1.1.0 | |
Author URI: http://www.katzwebservices.com | |
Copyright 2014 Katz Web Services, Inc. (email: info@katzwebservices.com) |
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 | |
/** | |
* Change the update entry success message, including the link | |
* | |
* @param $message string The message itself | |
* @param $view_id int View ID | |
* @param $entry array The Gravity Forms entry object | |
* @param $back_link string Url to return to the original entry | |
*/ | |
function gv_my_update_message( $message, $view_id, $entry, $back_link ) { |
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 the address field content before geocoding | |
* @param string $address Address value | |
* @param array $entry Gravity Forms entry object | |
*/ | |
function my_gv_maps_address_value( $address, $entry ) { | |
if ( 'MY_FORM_ID' != $entry['form_id'] ) { | |
return $address; | |
} |
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 | |
/** | |
* Custom Maps address field ID | |
* @param mixed $field_id Gravity Forms field ID | |
* @param GravityView_View object $view Current View object | |
*/ | |
function my_gv_maps_address_field( $field_id, $view ) { | |
if ( 'MY_VIEW_ID' != $view->view_id ) { | |
return $field_id; | |
} |
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 this to functions.php file | |
*/ | |
add_filter( 'gravityview_image_html', 'my_gv_remove_image_width', 10, 1 ); | |
/** | |
* Remove the image fixed hardcoded width on the multiple entries | |
*/ |
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 | |
/** | |
* Disable the State Saving on your DataTables view | |
* @link https://datatables.net/reference/option/stateSave | |
*/ | |
add_filter( 'gravityview_datatables_js_options', 'my_gv_state_save', 20, 2 ); | |
/** | |
* @param array $config Holds the DataTables table configuration | |
* @param string $view_id The current view id |
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 | |
/* | |
* Plugin Name: GravityView - Disable DataTables Search Filter and paging | |
* Plugin URI: http://gravityview.co/extensions/datatables/ | |
* Description: Disable the DataTables search filter and paging input. | |
* Version: 1.0 | |
* Author: Katz Web Services, Inc. | |
* Author URI: http://www.katzwebservices.com | |
* License: GPLv2 or later | |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html |
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 | |
/** | |
* Change the field separator when exporting a DataTable view into a CSV file | |
* Replace MY_FIELD_SEPARATOR by the new separator character like '|' or ';' | |
*/ | |
function my_gv_datatables_csv_export_separator( $config, $view_id ) { | |
if( empty( $config['tableTools']['aButtons'] ) ) { | |
return $config; |