Alex Standiford

  • Blog
  • Siren
  • Novatorius

$type

Home » $type
  • Alex Standiford

    December 8, 2021

    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.

    #WordPress

    $type, WordPress

Categories

  • Articles (166)
    • Blog Posts (50)
      • Stories (5)
    • Classifieds (8)
      • Resolved (5)
      • Unresolved (2)
    • Essays (59)
      • Listicles (8)
      • Tutorials (12)
    • Personal Updates (15)
    • Reviews (2)
    • Speaking (29)
      • Interviews (11)
      • Podcasting (14)
      • Presentations (4)
    • Travelogue (6)
  • Micro (4,417)
  • Open Source Contributions (42)
    • 3D Printed Designs (4)
    • Software (38)
  • Portfolio (8)
    • Case Studies (6)

Tags

3d Printing (23) Affiliate Program (16) ai (27) beermarketing (17) Blogging (22) brewery (21) Business (21) cast iron (36) Charlie (19) craftbeer (78) css (23) design (30) Disc Golf (63) fediverse (16) goodmorning (21) html (18) javascript (21) kiting (37) Leela (19) ListenTo (15) Maria (44) marketing (34) Matt Vs WPEngine (15) music (41) North Carolina (32) outdoor cooking (30) outer banks (34) photo (20) php (34) Project Cornhole Board (18) Project Novatorius (45) Project PartnerShip (19) Project PHPNomad (22) Project Siren (97) Project Standiford Blog (41) retail (28) Ricardo (22) Ricardo Wrecked (18) RV Life (231) travel (115) Underpin (20) Vermont (20) WCUS (68) WCUS2024 (32) WordPress (404)

Alex Avatar

Alex Standiford

I believe in embracing change, forging new paths, and building a life of freedom and creativity.

alex@standiford.us

  • GitHub
  • Mastodon
  • Bluesky
  • X
  • LinkedIn
  • Last.fm

Discover

Feed

Blog Posts

Essays

Personal Updates

WordPress

Open Source

Classifieds

Projects

🧜‍♀️Siren

PHPNomad

Agency

PartnerShip Podcast

RV Life

Speaking

This Website

Work With Me

Turn Your Website Into a 24/7 Sales Machine

Portfolio

Resume


Built with 💖By Alex Standiford. Love What You Do.

Get Siren

Privacy Policy

Affiliate Disclosure

Own Your Platform