Check Plugins in Use by Mutli Site Network

To check if a plugin is active on individual sites within a WordPress Multisite network, you can use the is_plugin_active_for_network function. This function takes the plugin file path as an argument and returns true if the plugin is active on the network, and false if it is not. Here is an example of how you … Read more

Warning: Undefined variable $admin

The error is telling that when you say: if($admin == ‘1’){ PHP has no idea what you are talking about. There is no $admin so it cannot ever equal 1. As Rick Hellewell mentioned in the comments, you might actually want is_admin() which is a function that returns a boolean (true or false). It is … Read more