WP functions in "side" plugin files
-
Hey there. I need to use 2 WP functions outside of plugin’s main file, let’s call this file functions.php . I need
is_user_logged_in()
and to get current user id which one get from global variable $current_user.
What should I include or what else I should do to use these in files other than main plugin file?
Thanks in advance
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘WP functions in "side" plugin files’ is closed to new replies.