• Alex Standiford

    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.

Alex
Alex
@alex@www.alexstandiford.com

Founder of Novatorius & creator of Siren Affiliates. WordPress engineer and partnership advocate helping businesses grow with flexible incentive programs.

4,818 posts
57 followers