Automatically add entries per category custom taxonomy upon plugin installation

Question

I have a plugin created with boilerplate from this site:
https://wppb.me/

And I would like to understand how to automatically add 4 entries in the custom taxonomy category that I have already processed.

I guess this code goes on the activator.php file, but I don’t know what code to apply to automatically generate these 4 categories.

Can you guys help me?

0
Matteo Feduzi 2 days 2021-06-10T08:42:00-05:00 0 Answers 0 views 0

Leave an answer

Browse
Browse