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
/** | |
* Replace the link text with a PDF image. | |
* | |
* Only for an anchor link to a PDF file in field output. | |
* | |
* Place this code (after <?php) at the bottom of your theme's functions.php file to enable it. | |
* | |
* @param string $html Existing HTML output | |
* @param array $args Arguments passed to the function | |
*/ |
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 | |
/** Modify the content returned from the Custom Content field */ | |
add_filter( 'gravityview/fields/custom/content_before', 'my_gv_custom_content_before', 10, 2 ); | |
/** | |
* Removes the custom content field's content in case a certain entry field is empty | |
* Replace the MY_FIELD_ID by the field id (check it on the Gravity Forms form definition) | |
* | |
* @param string $content Custom Content field content | |
* @param \GV\Template_Context $context |
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 | |
/* | |
* Supported on GravityView 1.6 | |
* | |
* Add this to your theme's functions.php file | |
* | |
* Replace the string 'MY NEW LABEL' for your own | |
*/ | |
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 | |
/** | |
* Place this in your theme's functions.php | |
* Please adapt the form_id and the field key to your own case. | |
* This is intended to force GravityView to search for the exact value instead of be more relaxed (default search uses operator LIKE) | |
* | |
*/ | |
add_filter( 'gravityview_fe_search_criteria', 'my_gv_exact_search', 20, 2 ); |
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 | |
/* | |
* Supported on GravityView 1.6 | |
* | |
* Add this to your theme's functions.php file | |
* | |
* Replace the string 'MY NEW LABEL' for your own | |
*/ | |
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 | |
/** | |
* 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 | |
/** | |
* Referenced in this article: http://docs.gravityview.co/article/235-how-to-make-calculations-using-the-custom-content-field | |
*/ | |
/** Modify the content returned from the Custom Content field */ | |
add_filter( 'gravityview/fields/custom/content_before', 'my_gv_custom_content_before', 10, 2 ); | |
/** | |
* Replaces the %CALC% placeholder by the result of a calc operation between entries' 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 | |
/** | |
* Get single entry pagination links | |
* to use: echo gravityview_entry_pagination(); | |
*/ | |
/** | |
* NOT FINAL CODE. Use at your own risk! This will be incorporated soon into core. | |
* | |
* This will use GravityView filters to generate the entry links. |
OlderNewer