PSA: don’t make your hooks or filters “cute”, where you make them dynamic based on some kind of string concatenation. EG:

do_action( ‘new_’ . $type . ‘_created’ );

It makes searching your code for the right hook much, much harder.

Comments

Leave a Reply

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