Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
add_filter( 'wp_discord_post_is_new_post', 'wp_discord_post_limit_by_category' );
function wp_discord_post_limit_by_category( $post ) {
return has_category( array( 'Category 1', 'Category 2' ), $post );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment