ns-rx / poetwp

0 stars 0 forks source link

Refactor plugin path #22

Closed ns-rx closed 2 months ago

ns-rx commented 3 months ago
          This `plugin_dir_path( __FILE__ )` is called four times - it won't change between each call, I promise - so call it once into a constant (that can also be used elsewhere if needed) and use that in your `require_once` statements.

_Originally posted by @GaryJones in https://github.com/ns-rx/poetwp/pull/13#discussion_r1730402597_

ns-rx commented 3 months ago

And also check other files

ns-rx commented 2 months ago

Also https://github.com/ns-rx/poetwp/pull/13#discussion_r1730399405