I am building a very basic plug-in, the template I have created works beautifully. However I am unable to get the custom post type to be built and displayed in the admin panel on activation.
The thing that is weird to me, if I add the trigger in a construct method, the post type is created and displayed in the admin panel.
On activation I receive the echo ‘Plug-in Activated!’, likewise for deactivation. I just cant figure out why this wouldn’t work within the activate method.
Please can someone direct me as to how I can trigger the creation of this post type on activation?
Here is my code:
- Hiện tại chúng tôi có hơn 25 nghìn bài văn mẫu các thể loại.
- Kho tài liệu, đề thi học sinh giỏi các lớp vô cùng phong phú.
- Mỗi ngày cập nhật hơn 100 đề thi chất lượng từ các website bán tài liệu lớn.
Tải đề thi VIP với giá siêu rẻ tại Vip.Dethihsg247.Com