Closed oalexdoda closed 4 years ago
The collection name will be based on the post type plural label in v1.5.0.
Does it remove dashes and underscores too? @dalenguyen
@altechzilla Yes it does.
Fancy-Cars -> wpFancyCars Fancy_cars -> wpFancyCars Fancy Cars -> wpFancyCars
Any reason they're prefixed with wp? Is there a case where the plugin would do a different prefix base?
It's because it comes from WordPress and I don't want it to be a conflict with existing collection names in people database.
Gotcha, makes sense!
There's two glitches when syncing custom post types with Firebase.
If the post type has two words (with either an underscore or a dash), it renders that too instead of camel-casing it.
I think they should be âwpMusicVideosâ and âwpElementorLibrariesâ instead. It would be great if collection names could also be custom labeled, so that if you wanted to drop the wp or take a deeper level of control over your database structure, you have that option.
The other glitch was that the word âlibraryâ gets pluralized as âlibrarysâ instead of âlibrariesâ.