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 filter the args of FrmProEntriesController::show_entry_shortcode(), which is used in the content of the PDF entry export file.
Formidable Forms is the best WordPress Form Builder plugin. Get it for free!
Usage
add_filter('frm_pdfs_show_args', 'change_array_separator', 10, 2);
Parameters
- $show_args (array): This args is used for FrmProEntriesController::show_entry_shortcode().
- $args (array): This contains all items in FrmPdfsAppController::get_default_entry_pdf_args()
- $entry (object): The entry object.
- $fields (object[ ]): Array of field objects.
Examples
Change the array separator
Use this code example to change the array separator of array value to '|'.
add_filter('frm_pdfs_show_args', 'change_array_separator', 10, 2);
function change_array_separator( $show_args, $args ) {
$show_args['array_separator'] = '|';
return $show_args;
}