class Plugin_Locations {
private $plugin_path = '';
private $plugin_url = '';
public function __construct( $file ) {
$this->plugin_path = plugin_dir_path( $file );
$this->plugin_url = plugin_dir_url( $file );
}
public function path() {
return $this->plugin_path;
}
public function url() {
return $this->plugin_url;
}
}