Understanding register_activation_hook in WordPress

WordPress provides many hooks and filters which can be used to customize the site one such function is register_activation_hook() which gets executed when we activate the plugin. When we activate the plugin we can perform many tasks such as checking if the plugin we are activating is compatible with the WordPress version installed, Setting up …