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

by Saeb Molaee   Last Updated December 06, 2018 15:08 PM

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/

Tags : plugins wpdb codex


Related Questions


Updated July 03, 2017 16:08 PM

Updated July 28, 2017 17:08 PM

Updated March 08, 2017 13:08 PM

Updated August 01, 2017 18:08 PM

Updated September 29, 2017 15:08 PM