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



Set post_template or page_template in an array?

Updated July 28, 2017 17:08 PM

download_url() appears as grey icons

Updated March 08, 2017 13:08 PM

Need to fix this code?

Updated August 01, 2017 18:08 PM

Too may redirects when i use the wp_redirect() function

Updated September 29, 2017 15:08 PM