Skip to content

Instantly share code, notes, and snippets.

@jameskoster
Created June 15, 2016 15:18
Show Gist options
  • Save jameskoster/7d06324aac4288fc91290850030c03f9 to your computer and use it in GitHub Desktop.
Save jameskoster/7d06324aac4288fc91290850030c03f9 to your computer and use it in GitHub Desktop.
Bookshop - change the author attribute
add_filter( 'bookshop_author_attribute', 'jk_new_author_attribute' );
function jk_new_author_attribute( $attribute ) {
$attribute = 'pa_newattribute';
return $attribute;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment