Heads up!
This article contains PHP code and is intended for developers. We offer this code as a courtesy, but don't provide support for code customizations or 3rd party development.
This article contains PHP code and is intended for developers. We offer this code as a courtesy, but don't provide support for code customizations or 3rd party development.
Use this hook to customize content in your View.
Usage
add_filter( 'frm_display_entries_content', 'frm_custom_content', 20, 6 );
Parameters
- $new_content (string)
- $entries (array of entry IDs)
- $shortcodes (array of shortcodes used in View)
- $display (object)
- $type (string)
- $args (array)
Examples
Basic Format
add_filter('frm_display_entries_content', 'frm_replace_content', 20, 4);
function frm_replace_content($new_content, $entries, $shortcodes, $display){
if($display->ID == 1066){//Replace 1066 with the ID of your View
$new_content = "Your custom content here";
}
return $new_content;
}