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.
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.
Leave a Reply