Skip to content

Instantly share code, notes, and snippets.

@danielbachhuber
Last active July 28, 2017 14:21
Show Gist options
  • Save danielbachhuber/8ff2b22ca5dfd4a2a6e2ef53e269e9d5 to your computer and use it in GitHub Desktop.
Save danielbachhuber/8ff2b22ca5dfd4a2a6e2ef53e269e9d5 to your computer and use it in GitHub Desktop.
Limit bylines to only posts
<?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