[wp-hackers] register_*() vs. add_*()?
mikeschinkel at newclarity.net
Sat Mar 19 19:51:14 UTC 2011
Thanks. That helps a bit.
On Mar 19, 2011, at 3:47 PM, Otto wrote:
> The real reason is probably just time and different people writing
> different bits.
> But if you wanted to standardize a bit, I'd say that registering
> something "creates" it without taking any other real action, while
> adding something more often causes other sub-thing to happen. Of
> course, there's exceptions and this is open to interpretation, but
> that's about the gist of it, I think.
> On Sat, Mar 19, 2011 at 1:17 PM, Mike Schinkel
> <mikeschinkel at newclarity.net> wrote:
>> I'm trying to understand the rationale between prefixing core functions with "register_" vs. "add_" as a prefix. I can't seem to recognize why one is used at times and the other is used at times. Examples from core:
>> I'm working on code I could envision offering up as proposed additions to core so that's why I'm interested in the difference.
>> Thanks in advance.
>> P.S. I think I asked this question on trac before but didn't get a good answer.
>> wp-hackers mailing list
>> wp-hackers at lists.automattic.com
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
More information about the wp-hackers