Last active
July 28, 2017 14:21
-
-
Save danielbachhuber/8ff2b22ca5dfd4a2a6e2ef53e269e9d5 to your computer and use it in GitHub Desktop.
Limit bylines to only posts
This file contains hidden or 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 | |
/** | |
* Only use bylines with posts. | |
* | |
* @see https://bylines.io/docs/customize-post-types/ | |
*/ | |
add_filter( 'bylines_post_types', function() { | |
return array( 'post' ); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment