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

Fixing deprecated function warning #19

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

logichub
Copy link

@logichub logichub commented May 19, 2021

Code at Line 11 is generating following error:

The WC_Memberships_Frontend::get_members_area_instance function is deprecated since version 1.19.0. Replace with WC_Memberships_Frontend::get_my_account_instance()->get_members_area_instance().

It can be fixed by replacing with the following code:

		$members_area = $frontend ? $frontend->get_my_account_instance()->get_members_area_instance() : null;

Code at Line 11 is generating following error:
`The WC_Memberships_Frontend::get_members_area_instance function is deprecated since version 1.19.0. Replace with WC_Memberships_Frontend::get_my_account_instance()->get_members_area_instance().`

It can be fixed by replacing with the following code:
`1$members_area = $frontend ? $frontend->get_my_account_instance()->get_members_area_instance() : null;`
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

Successfully merging this pull request may close these issues.

1 participant