Denis Žoljom
Denis Žoljom
What is `$plugin_admin` in the `define_admin_hooks()` method? :)
Did you put it inside the method? Because you'll either need to add it inside the method to make this variable available inside the method, or maybe add it in...
Ok, I wanted you to do this yourself (learning experience) but I'll help :D Either do this: ```php public function __construct() { if (defined('PLUGIN_NAME_VERSION')) { $this->version = PLUGIN_NAME_VERSION; } else...
Is your plugin hosted on wordpress.org?
Ok, then you need to turn on the debugging, and put a bunch of `error_log()`s around and see where your method breaks. See if it's called at all, if not,...
I just pasted the code and got an error ```php set_transient( 'xxx, $remote, 43200 ); // 12 hours cache ``` You're missing a `'` in `xxx` :) ```php set_transient( 'xxx',...
But besides that, the filter won't fire. It did fire when I viewed 'view details' of another plugin when I tested this. Try asking on wordpress.stackowerflow :/
Or you can try to include it like ```php // Styles from options - appends styles to $custom_css variable. $custom_css = ''; include_once( get_stylesheet_directory() . '/path-to-this-stylesheet/my-stylesheet.php' ); wp_add_inline_style( 'main-css', $custom_css...
> Don't know include config file in plugin folder are safe or not? but its working!! If you want to submit your plugin on .org repo, it will be rejected....
I wouldn't go above defining the base `phpunit.xml.dist` file for this boilerplate. The code in it is super tightly coupled. You'd have to mock tons of stuff to make it...