Created
November 21, 2015 11:52
-
-
Save Dinamiko/3fc593db18214d0e4155 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* 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