How can check auth in functions ?

Hi
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 1 year ago

hi, you can check with those functions


http://docs.microweber.com/functions/is_logged.md


http://docs.microweber.com/functions/is_admin.md

digitalhikess 1 year ago

Thank you for your documents.

You must be logged in to reply on this thread


Sign Up
ghasem