Call to undefined method ::has_cookie_info()
-
Call to undefined method WP_CONSENT_API_COOKIE_INFO::has_cookie_info()
When calling wp_set_cookie(),
– wp_set_cookie calls wp_has_cookie_info(),
– wp_has_cookie_info calls WP_CONSENT_API::$cookie_info->has_cookie_info()
WP_CONSENT_API::$cookie_info->has_cookie_info() DOES NOT EXIST.
Secondly, WP_CONSENT_API isn’t instantiated until ‘plugins_loaded’ making it unusable until then.
add_action( ‘plugins_loaded’, array( WP_CONSENT_API::class, ‘get_instance’ ), 9 );Why not instantiate when it loads? (there may well be a good reason)
Thanks for you attention and help!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- You must be logged in to reply to this topic.