Is there a canonical way for a plugin to install a mu-plugin or drop-in?

There are no canonical methods for doing this, and in many cases it’s undesirable. E.g. more than one plugin may want to override a drop in. You might also be reaching into and modifying files that are managed by the hosting company, which might either break things or trigger problems. Instead, you should disable any … 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