Created
June 23, 2015 17:31
-
-
Save SeanChDavis/e4e9aab7ba0f3731092c to your computer and use it in GitHub Desktop.
Vendd filter - author name in single download sidebar
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
// global | |
add_filter( 'vendd_show_single_download_author_name', '__return_false' ); | |
// download-specific | |
function example_vendd_show_single_download_author_name( $show_author_name, $post ) { | |
if ( $post->ID == 123 ) { | |
$show_author_name = false; | |
} | |
return $show_author_name; | |
} | |
add_filter( 'vendd_show_single_download_author_name', 'example_vendd_show_single_download_author_name', 10, 2 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment