Created
November 21, 2015 10:26
-
-
Save Dinamiko/2725e1951862b6e0cab9 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 | |
/** | |
* Removes post type attachment in PDF Button Post types to apply | |
*/ | |
function remove_dkpdf_posts_arr( $post_arr ) { | |
unset( $post_arr['attachment'] ); | |
return $post_arr; | |
} | |
add_filter( 'dkpdf_posts_arr', 'remove_dkpdf_posts_arr' ); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment