I’d like to thank @Milo for the answer. The issue was the $basename
and dirname()
helps locate the correct directory.
$basename = plugin_basename( plugin_dir_path( dirname( dirname( dirname( __FILE__) ) ) ) . $this->plugin_slug . '.php' );
I’d like to thank @Milo for the answer. The issue was the $basename
and dirname()
helps locate the correct directory.
$basename = plugin_basename( plugin_dir_path( dirname( dirname( dirname( __FILE__) ) ) ) . $this->plugin_slug . '.php' );