How can check auth in functions ?

I writing module and i need to check is user login and is admin
but when i use auth()->check it's return false event when i'm login
i need to run my module before front show, so i write my code in functions.php

Peter Ivanov 2 years ago

hi, you can check with those functions

digitalhikess 2 years ago

Thank you for your documents.

You must be logged in to reply on this thread

Sign Up