Title: Function issues when plugin is enabled
Last modified: February 10, 2019

---

# Function issues when plugin is enabled

 *  [te_taipo](https://wordpress.org/support/users/te_taipo/)
 * (@te_taipo)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/function-issues-when-plugin-is-enabled/)
 * I am the author of Pareto Security plugin. Am having some compatibility issues.
   When plugin-load-filter plugin is enabled, both is_user_logged_in() returns false
   and wp_get_current_user() returns 0 instead of the object. When disabled these
   return to their usual behaviour.

Viewing 1 replies (of 1 total)

 *  Plugin Author [enomoto celtislab](https://wordpress.org/support/users/enomoto-celtislab/)
 * (@enomoto-celtislab)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/function-issues-when-plugin-is-enabled/#post-11204838)
 * The plugin load filter works as a must-use plugin in its mechanism.
 * In the operation with the must-use plugin, since wp_set_current_user has not 
   been executed yet, is_user_logged_in is false until wp_set_current_user is executed.
 * Since it is a security plug-in, you may want to make a judgment as soon as possible,
   but it can not be determined with is_user_logged_in that wp_set_current_user 
   is not being executed, so it may be necessary to judge directly from cookie.

Viewing 1 replies (of 1 total)

The topic ‘Function issues when plugin is enabled’ is closed to new replies.

 * ![](https://ps.w.org/plugin-load-filter/assets/icon-256x256.png?rev=1202972)
 * [Plugin Load Filter](https://wordpress.org/plugins/plugin-load-filter/)
 * [Support Threads](https://wordpress.org/support/plugin/plugin-load-filter/)
 * [Active Topics](https://wordpress.org/support/plugin/plugin-load-filter/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/plugin-load-filter/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/plugin-load-filter/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [enomoto celtislab](https://wordpress.org/support/users/enomoto-celtislab/)
 * Last activity: [7 years, 3 months ago](https://wordpress.org/support/topic/function-issues-when-plugin-is-enabled/#post-11204838)
 * Status: not resolved