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'] );
}

Comments

4 responses to “”

  1. Than Avatar

    Should I guess who you’re replacing him with?

  2. skin-covered coffee Avatar

    looks like a good usecase for a case / switch callback for filtering MANY assholes

  3. Peter Wilson ?️‍? Avatar

    In my defence, Howard Dean was replaced with Lin-Manuel Miranda too.

  4. Peter Wilson ?️‍? Avatar

    You’re right, I should have written it for scale.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.