Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Call to undefined function WPGatsby\ActionMonitor\Monitors\get_current_screen() #223

Open
JohannLesacher opened this issue Apr 22, 2022 · 0 comments

Comments

@JohannLesacher
Copy link

I'm runing into this error when saving a form created with the acf_form function.
I'm runing a site with a WordPress backend, a WordPress frontend and a Gatsby frontend.

get_current_screen is a backend function and I'm using an ACF form on the WordPress frontend.
The goal of this function is to check if we are on an Option page.
It will always be false from de frontend of WP so I think we should add a conditionnal like :

! function_exists( 'get_current_screen')

to return early if we are not in the context of the WordPress backend.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant