my function works if call it but not as activation register hook

hi there I have a function which makes some row in a table,
If i call it it works normally,
but if I use as register_activation_hook(__FILE__,’add_sellers_brand_size_to_db’);
it doesn’t work,
code is here
https://paste.ubuntu.com/p/w8vRZmp8H3/

Read more here:: my function works if call it but not as activation register hook

Leave a Reply

Your email address will not be published. Required fields are marked *