Save up to 50% off during Black Friday!

fg_entryautomation_pdf_template_entry

Description

This filter is allows you to change the path of the template used for the PDF export file entry.

Usage

PHP
add_filter( 'fg_entryautomation_pdf_template_entry', 'your_function_name', 10, 3 );

Parameters

  • $template_entry string
    Path to default PDF entry template file.
  • $task Task
    The current Entry Automation Task object.
  • $form array
    The current Automation task’s form.

Examples

This example will change the path used for the PDF export file entry to point to a custom file within your active theme. You will need to replace /remaining/path/to/yourfile.php with the path to the template file relative to your active theme root.

PHP
add_filter( 'fg_entryautomation_pdf_template_entry', function( $template_entry, $task, $form ) {

	$template_entry = get_stylesheet_directory() . '/remaining/path/to/yourfile.php';
	return $template_entry;

}, 10, 3 );

Since

This filter was added in Entry Automation version 2.0.0.