Skip to content

Instantly share code, notes, and snippets.

@karlpotter
Created February 4, 2022 21:24
Show Gist options
  • Save karlpotter/bfd17e2bc9a86f4a2db9ba34dce31db1 to your computer and use it in GitHub Desktop.
Save karlpotter/bfd17e2bc9a86f4a2db9ba34dce31db1 to your computer and use it in GitHub Desktop.
add_filter( 'fg_fillablepdfs_form_path', function( $form_path, $form_id ) {
if ( $form_id === 103 ) {
// Run code for Form #103
return 'wp-content/uploads/gravity_forms/fillablepdfs/mycustom103';
}
return $form_path;
}, 10, 2 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment