echo get_option in header template

There’s quite a few issues with your code: Your code is only defining a function if the condition is true. It doesn’t actually output anything. Your condition is using a strict comparison to 1, but options will always be strings and 1 does not === to ‘1’. That function is only defined it if it’s … Read more

Include Minit plugin in theme [closed]

Well, Minit for WordPress is hooked into the plugins_loaded action hook (you can see that checking the file minit.php). And the thing is you are requiring the file minit.php in your functions.php, which is a file loaded after the hook plugins_loaded is called. This means that Minit is not being initialized the proper way. So, … Read more

License validate function

You could try adding a function to for example init action, that either enables plugin features (i.e. includes plugin files) or displays the admin notice. Something along these lines, function licence_notice_or_enable_features() { // Check if (valid) licence key (or validation token, etc.) is saved to the database // and add other plugin files // If … Read more