Plugin Directory call error
-
So, I noticed an issue with your plugin in your main.php file. You are defining the WPP_PATH incorrectly. This only allows for “http” not “https”. So, sites using “https” get a warning that their site isn’t completely secure because your print icon isn’t calling to “https”.
CURRENT CODE:
define(‘WPP_PATH’, WP_PLUGIN_URL . ‘/’ . plugin_basename( dirname(__FILE__) ) . ‘/’ );
CODE YOU SHOULD UPDATE TO:
define(‘WPP_PATH’, plugin_dir_url( __FILE__ ) );
- The topic ‘Plugin Directory call error’ is closed to new replies.