#wordpress 2019-11-02
2019-11-02 UTC
# [grantcodes] I think I have actually used it before though. I'll have a quick peek at the code
# [grantcodes] In my code (which may not be great) I just send the username & password, then get back the jwt and use that in api calls
# [grantcodes] Hmm, well I did not even know that was a thing 🤷♂️ a lot of people are probably in the same boat. When I think of oauth I only think of a bunch of redirects 😅
# aaronpk Think of OAuth as a description of a way to get a token into an app. His post is basically whine whine whine OAuth is too hard, then says let's use JWTs, and then fails to describe how to get those JWTs into apps, and also doesn't realize that plenty of OAuth systems use JWTs as access tokens
# [grantcodes] Fair points.
# [grantcodes] Could also be that password grant type isn't built into the WordPress oauth implementation in which case his point stands
# [grantcodes] Yeah, doesn't look built in: https://github.com/WP-API/OAuth2
# [grantcodes] Oh yeah, I'm sure.
[snarfed], [tantek], [bradleyallen], [chrisbergr], [qubyte], gRegorLove, [manton], Oclair, [jgmac1106], [grantcodes], [KevinMarks], stefanos82 and TimeOnDiscord[m] joined the channel
bigsbigs joined the channel
# bigsbigs Hi
[chrisaldrich] joined the channel
# [chrisaldrich] I obviously have both Tantek. Not sure if GWG has the vouch flag on by default or of its a manual code thing.
# [chrisaldrich] The official repo indicates 800+ people have wordpress webmention installed, though I'm not sure if that includes many of the manual installs from github that would exist as well.
# [chrisaldrich] iirc, and GWG may correct me, but I think he'd only begun building for sending a few camps back. WP version of vouch doesn't do receiving or any work with respect to moderation yet.
# [chrisaldrich] The closest most get for automatic moderation at present with respect to webmentions is in combination with spam plugins like Akismet.
[manton] joined the channel
# [chrisaldrich] At present you'd need to be a reasonably advanced developer to know vouch exists, that it's in the repository, and have the capability to know where in the code to put the flag. This is the current level of the documentation: https://github.com/pfefferle/wordpress-webmention#384
# [jgmac1106] I used Askimet not the same thing but good enough where I didn't try bleeding edge
[Michael_Beckwit joined the channel
# [Michael_Beckwit no vouch for my pirate site + webmentions since I didn't know vouch was a code setting
# [Michael_Beckwit i’m ready for the “Take Back Your Web” livestream
# [Michael_Beckwit the latter 😉
chrisaldrich, gRegorLove and [chrisaldrich] joined the channel
# [chrisaldrich] Tantek++
[jgmac1106] joined the channel
# [Michael_Beckwit I think he did a good job to whet whistles while not overwhelming. Now to just help make it so the overwhelming parts aren’t as overwhelming 😄
# stefanos82 folks, I need your expertise in WordPress please. I have a demo website setup locally and built a custom plugin that adds a couple of custom meta data fields in WooCommerce and right now with ~=1260 products, my wp_postmeta reached ~50MB size...imagine if I inserted 5000 products what would happen! :S
[qubyte] joined the channel
# [Michael_Beckwit a rather large wp_postmeta table
# [Michael_Beckwit but not as large as i’ve seen/dealt with
# [Michael_Beckwit so it’s something to keep in mind, but far from the worst
# stefanos82 can you share any article around WooCommerce plugin development that shows how to implement custom table(s) so I can store my data there?
# stefanos82 [Michael_Beckwit: well...this demo is something I work on locally and at work we plan to import 50K products! -_-
# [Michael_Beckwit sadly i don’t have any that i’ve actually gotten the chance to attempt with
# stefanos82 that's a long-term goal though
chimo joined the channel
# [Michael_Beckwit it’s all just been research-like details and not focused specifically on WooCommerce
# stefanos82 if we didn't use WordPress, I think it *could* have been simpler to implement with a framework
# stefanos82 but right now, with my limited knowledge around WordPress ecosystem, my hands are tight
# [Michael_Beckwit closest i have from my notes are https://www.antradar.com/blog-wordpress-and-the-curse-of-eav and https://wordpress.stackexchange.com/questions/4852/post-meta-vs-separate-database-tables/257147#257147
chimo joined the channel
# stefanos82 yeah the SO link gave me the chill hours ago
# [Michael_Beckwit the table i was researching for is up to 2mil+ rows
# [Michael_Beckwit but just in the past week or two i saw people with woocommerce sites that have 10mil+ rows
# stefanos82 I have seen some reports online, but those have done it with custom REST API endpoints, which means they have heavily modified / customized their websites
[tantek] joined the channel
# [Michael_Beckwit ugh, telling to make it opt out vs opt in
[fluffy] and [KevinMarks] joined the channel