« first day (3909 days earlier)      last day (1334 days later) » 

07:03
No major differences using WP_Query.
07:13
Maybe object caching is worth it here.
I am doing a massive conversion during the next few weeks.
Thinking about posting some of my code here.
I've already done a speed test on inserting posts.
It's really interesting.
Do we have a Q&A here on disabling the Rest API for everything beside block editor (which requires it)? Basically enabling it only for what's required for the core stuff to work in WP...
 
6 hours later…
12:58
Update. I have managed to decrease the post query from 1.4 seconds to 0.4 seconds! I did this by storing the connecting post ID as the post title in the new post, so that I can skip the 'meta_query' part. Kinda clever I guess lol
Now, I can decrease the 0.4 seconds to 0.08 seconds if I can find a way to add milliseconds to the post_date column. That way, I can ditch the order by meta_value_num targeting a timestamp with milliseconds.
Not that anyone care about all this. :)
Alternative is that I use sleep() for one second in between each inserted post. That way, all times will be properly different.
Dumbest approach ever haha
13:23
no post parent?
13:38
Would that be a much quicker query than 'title'=> $post_id? It would mean one parent post could have 50k children. =)
Also wondering if a post from one post type can be the child of a post from a different post type. Need to investigate.
Wow, we actually have a Q&A on this: wordpress.stackexchange.com/questions/181134/…
title and post parent are indexed
14:35
I have tried the same query but targeting post_parent. Same results as targeting the title.
So speed wise, no difference.
14:54
Hi, can i ask what action is fired when you click add user from backend in wordpress please Had a look at the codex, and ive tried alsorts including user_register etc.
Hello! Are you trying to add inputs to the form or process data after the form has been submitted?
@Howdy_McGee yes i am (if thats to me). The weird thing is... its working on one of the users... but isnt on the other... which i cannot understand. I am using
add_action( 'show_user_profile', 'my_show_extra_profile_fields' );
So there's the user_new_form hook which I think can be used to add new fields to that form. Then there's both show_user_profile and edit_user_profile to add fields when editing a specific user. I think show_user_profile only displays on the profile of the logged in user and edit_user_profile will show when the user is editing other users ( if that makes sense ).
@Howdy_McGee yes, ok i will try that hook... Its weird as i said, on my original user (my login). The fields are diplaying fine... but when i am editing another user,... they arent XD.....
yuou are a legend!
edit_user_profile is the one i needed :)
Cool, glad it works!
 
6 hours later…
21:38
@TomJNowell to completely blindside you, this last year (or... perhaps much longer) I have been thinking that I would like to work at Automattic in the near future. I applied to a JS Engineer position prior to the pandemic, and received feedback to bolster my open source contributions (which makes sense - I have few, and my work history is a bit peculiar to the end of demonstrating my experience with and passion for web tech).

I was wondering if you might have any off-the-cuff tips from your Automattician years?
apply to HumanMade instead
Heh, well alright. I was just looking at Delicious Brains
what they probably mean though is raise your profile in the community, in particular as a dev
which is useful regardless of where you apply if the company is worth applying for
ofcourse there are things you can do at A8C that can't be done elsewhere
just by virtue of what it is and the individual at the helm
but that depends where you end up in Automattic
life can be very different depending on which division team and role you're in, sometimes for the better
sometimes not so much
Re: Delicious Brains, I don't know much about their internals
but I can say: Booo ACF booo
from what I see of their product line up though, their bread and butter is in selling hammers and spanners
you won't find any sonic screwdrivers there or hyperspanners
I figured... My career path thus far as been a lot of "army of one positions" solving random issues with a widely varying tech stack. Which has been fun and with a lot of freedom, but turns out really made for a sort of lousy resume for the things I really want to do. Tried freelancing on webwork exclusively for the pandemic and... it's not for me. I want to build the tools so much more than I want to build sites.

I've been fond of the ideology which Automattic expresses, not that I can assess if that's something that's really integral when working there.
but they don't need to
21:46
@TomJNowell Yeaaaaaah... I've been surprised ACF hasn't evidently leaned harder into Gutenberg, yet. It seems like a prime candidate.
the question is how, especially given that most people who dislike gutenberg or don't have react skills and are avoiding it especially are probably ACF users
what I've seen makes sense for anxious small businesses
I can't say it's the most imaginative, but it didn't have to be
it wouldn't surprise me if something more comprehensive is in the works
but I also know Elliot raised a stink about it all on twitter before he tried to look into writing code, at which point it all went rather quiet
So very true. Gutenberg can largely replace a lot of ACF's functionality - but it doesn't need to be that way. ACF could adapt beyond "look here's an interface for a dynamic block - A.K.A. fancy shortcode."

But from my little stint in dedicated freelancing here, spot on. ACF still reigns among everyone who doesn't want to touch JS, companies and freelancers alike.
@TomJNowell humbug
I've tried not to weigh in on the subject much, there's no point talking ill of ACF and encouraging people actually build blocks if the answer is to use WP Scripts and learn React and APIs
people had that option and chose classic, then switched to ACF because it let the do business as usual
*insert general akbar it's a trap*
lmao
I've an alternative in mind but until it's built there's no point going on about it
21:51
I'll keep an eye out
I try to push people to wp-scripts, but have had very limited success. And scrap with people on ACF frequently, lol. I love Gutenberg - it's brought me back to WordPress - but opinion is still pretty low in the wider community it seems.
In any scenario I do appreciate the input! I will apply to Human Made - they've certainly been doing neat things for years. I would love to work for them

« first day (3909 days earlier)      last day (1334 days later) »