The project I am on at work uses a lot of tags. My local data only needs to be “close enough” so I realised I can do things like this. Bye, Julian, bye-bye
if ( 'Julian Assange' === $term['name'] ) {
replace_julian_assange( $term['term_id'] );
}
Written by
in Notes.
The project I am on at work uses a lot of tags. My local data only needs to be “close enough” so I realised I can do things like this. Bye, Julian, bye-bye
if ( 'Julian Assange' === $term['name'] ) {
replace_julian_assange( $term['term_id'] );
}
Should I guess who you’re replacing him with?
looks like a good usecase for a case / switch callback for filtering MANY assholes
In my defence, Howard Dean was replaced with Lin-Manuel Miranda too.
You’re right, I should have written it for scale.
Leave a Reply