Replies: 1 comment 1 reply
-
For WordPress specific questions, please use the discussions tab at spatie/wordpress-ray |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm using the Ray WordPress plugin during development, but in production it's not going to be available (The plugin will be distributed through WordPress.org). Therefore I need to figure out a way to have a "dummy"
ray()
method that can be used if the real Ray framework is not available.Here is a quick solution I came up with. It's supposed to do nothing if Ray is not available and also not throw any errors despite there being various
ray()->...
calls in the codebase. Will this fully cover Rays functionality or did I miss something?Beta Was this translation helpful? Give feedback.
All reactions