wsf_action_pdf_template_pathPRO

This knowledge base article relates to the WS Form PDF add-on. Included with the Agency edition or buy separately for other editions.

Description

The wsf_action_pdf_template_path filter hook allows you to change the default path for PDF templates relative to the WS Form uploads path.

The default WS Form uploads path is:

/wp-content/uploads/ws-form

The default WS Form PDF template path is:

/wp-content/uploads/ws-form/pdf/templates

Usage

add_filter( 'wsf_action_pdf_template_path', 'my_hook_function', 10, 1 );

Parameters

  1. $path String
    The path for the PDF templates.
    Default value: pdf/templates

Example

// Callback function for the wsf_action_pdf_template_path filter hook
function my_hook_function( $path ) {
	
	// Your code here ...

	// Return value
	return $path;
}

// Add a callback function for the wsf_action_pdf_template_path filter hook
add_filter( 'wsf_action_pdf_template_path', 'my_hook_function', 10, 1 );

Source File

This hook can be found in: <plugin root>/ws-form-pdf.php