in_array function Problem

I’d assume that $specific_admin_usernames is an array– so there’s no need for this line $specific_admin_usernames_imploded = implode($master_admin_usernames); Also your if statement is a little backwards. PHP’s in_array( $needle, $haystack) doesn’t need the $current_logged_in_user !== part. Try: if ( in_array($current_logged_in_user, $master_admin_usernames) ){ // this runs when the current user is IN the master list }

Adding Custom CSS with PHP

I know this sounds like it’s a good idea, but anyone can simply just view the source of the page and take whatever they want from there. They can also simply just hit Ctrl+S on their keyboard and save that entire page to their hard drive. They could even screenshot the page and use OCR … Read more

OOP plugin not working

If that’s the entirety of plugin — you never create an object instance of your class. Class itself is merely a definition. Just like functions don’t do anything unless called, definition does nothing unless object of it is created. Thus new My_Custom_Plugin();. Note the if you want to be a good citizen you should allow … Read more