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/datatables/config/locale', 'modify_gravityview_datatables_locale', 10, 2 ); | |
/** | |
* Modify the locale used in the DataTables translation | |
*/ | |
function modify_gravityview_datatables_locale( $existing_locale, $translations ) { | |
// Define the Locale Code, as shown here: http://wpcentral.io/internationalization/ |
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_after', 'gv_add_the_content_filter_to_custom_content_field' ); | |
/** | |
* This example runs `the_content` filter on the content to process `[embed]` shortcodes. | |
* | |
* @param string $content Existing field content | |
* @return string Modified field content |
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 | |
/** | |
* Removes the "We respect your online privacy and will never spam you..." text. | |
* | |
* Add the following to your functions.php file: | |
*/ | |
add_filter( 'idx_plus_contact_form_disclaimer', '__return_empty_string' ); |
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 | |
/** | |
* Removes the "We respect your online privacy and will never spam you..." text. | |
* | |
* Add the following to your functions.php file: | |
*/ | |
add_filter( 'idx_plus_contact_form_disclaimer', 'modify_idx_plus_contact_form_disclaimer' ); | |
/** |
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 | |
/* | |
* 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 | |
/** | |
* Allow override of default behavior, which is to respect search queries. | |
* | |
* @param boolean $always_show_featured_entry If returned true, featured entries will be shown even if the search doesn't match the entry | |
*/ | |
add_filter('gravityview_featured_entries_always_show', '__return_true'); |
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 | |
/** @since 1.1 */ | |
add_filter( 'gravityview/widget/recent-entries/item', array( $this, 'gravityview_wrap_recent_entries_widget_item_output' ), 10, 3 ); | |
/** | |
* Modify the item output HTML to wrap entries in a div.gv-featured-entry | |
* | |
* @param string $item_output The HTML output for the item | |
* @param array $entry Gravity Forms entry array |
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 | |
/** | |
* Enable the "Add Media" button in the Rich Text editor | |
* (Requires GravityView 1.7 or higher) | |
*/ | |
function modify_gv_wp_editor_settings_add_media( $settings ) { | |
$settings['media_buttons'] = true; | |
return $settings; | |
} |