Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
* Example changing wp query arguments for the generated PDF
* $args = array( 'p' => $pdf, 'post_type' => $post_type, 'post_status' => 'publish' );
function changing_dkpdf_query_args( $args ) {
$args['p'] = 1710;
$args['post_type'] = 'doc';
return $args;
add_filter( 'dkpdf_query_args', 'changing_dkpdf_query_args' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.