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.
Join 300+ founders learning to build their business together. Short, useful emails on partner-led growth and sane operations.
Leave a Reply