Home
Tips & tricks
Continous Integration
Deployment
Plugins
Contact
registration
Modify CPT arguments after it was registered
When registering a new custom post type it’s easy to pass the arguments to the register_post_type function directly. It can’t…
Date
December 1, 2021
Posted by
Andrei
Tags
CPT
,
modify
,
registration
ZeroWP
Find me online
Let's connect on
LinkedIn
I do open source on
GitHub
See my contribution to
WordPress
Follow me on
Twitter
Follow me on
Dribbble
Sometimes on
Stack Exchange
Recent comments
Maybe doing a side-by-side comparison before and after modification would help to understand. If the modified code…
Andrei
3 days ago
Hi Andrei, that is exactly the point: I don't. I just modify existing numbers (i.e. post-ids). And yet still the…
Michael
3 days ago
Yes, you're right. I've put the conditional check outside of the loop by mistake. I've updated the article. Thank you…
Andrei
3 days ago
How are you changing it? If you add more attributes, they need to be registered, otherwise, the block render will…
Andrei
3 days ago
Thanks for taking the time to write this article. I needed to know how to insert taxonomy terms programmatically and…
Paul C
3 days ago
That is an interesting approach and I made it work nicely for this use case: I have a "hand-picked products"…
Michael
1 month ago
ZeroWP
Recent comments