FANDOM


Hi Will,I've been doing this for many of my recent pnugils. I find it to be really useful when creating custom objects (by object' I mean custom post_types and taxonomies). Something about creating a static class for each CPT or taxonomy resonates really well me. Here are some links to some of my projects that use this method:They are all free and released under the GPL.I've also used the functional style. I do not really prefer one over the other. I've read arguments by well-known developers that using a class for a namespace is not a good idea and have heard opposing arguments by well-known developers as well. I use whatever makes sense for the task at hand. Hi Will,I've been doing this for many of my recent pnugils. I find it to be really useful when creating custom objects (by object' I mean custom post_types and taxonomies). Something about creating a static class for each CPT or taxonomy resonates really well me. Here are some links to some of my projects that use this method:They are all free and released under the GPL.I've also used the functional style. I do not really prefer one over the other. I've read arguments by well-known developers that using a class for a namespace is not a good idea and have heard opposing arguments by well-known developers as well. I use whatever makes sense for the task at hand.

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.