Custom types and related actions
-
Hello,
i am capable of creating my own site in “bigger” CMSs or Frameworks or even from scratch, but i truly respect what the folks at wordpress have done and i want to use it so I was wondering, with having global* actions like “save_details”, isn’t there anyway to make sure variables won’t collide? i mean, yeah i will name my variables with meaningful names, i might even do a switch case to check what’s the custom type i am working with and execute a callback function, but why not add another argument to the add_action function that allows it to work only on a specific type or custom type! what if i just want to save my “Cars” custom field without having to worry about the variables scope!
tl;dr what techniques do you use/suggest for dealing with numerous custom types with numerous custom fields?
Rami.
* I am not sure about the scope of add_post function though.
- The topic ‘Custom types and related actions’ is closed to new replies.