Tag Info

Hot answers tagged


You have a couple of flaws here: ALWAYS code in a way with a mindset of that your code will fail. This is very important. Most people code with a perfect world mindset. A perfect world will never happen. Always think of what will happen when your code fail. As example, in your code, $terms return an object of term objects if everything pans out. $terms ...


I learned from the comments by @Pieter Goosen and @Ignat.B, and @Pieter Goosen's answer here, that I need to register the taxonomy on plugin activation, and insert the term. Then I need to hook the taxonomy registration code to the init action hook as suggested by the codex. This will ensure that when I insert the term on plugin activation, I have the ...

Only top voted, non community-wiki answers of a minimum length are eligible