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 download URL of the [frm-pdf] shortcode.
Usage
add_filter('frm_pdfs_download_url', 'add_custom_param' , 10, 2);
Parameters
- $url (string): The URL.
- $args (array):
- $shortcode_atts (array): The shortcode atts.
- $url_params (array): The unencoded URL params.
Examples
Add custom param to download URL
add_filter('frm_pdfs_download_url', 'add_custom_param', 10, 2);
function add_custom_param( $url, $args ) {
$url = add_query_arg( 'key', 'value', $url );
return $url;
}