• Hey everyone! I wanted to share a solution that took me more than a day to put together so anyone who is looking doesn’t have to go through what I did.

    I am a novice so I apologize if I speak out of term.

    I had a problem figuring out how to grab custom user styles in a plugin based on user ID. My solution was finally worked out as so: initialize pluggable.php, obtain user, check user ID, return true if any user other than my user (admin) ID, add action.

    Requiring pluggable.php is included because it initializes after plugins are loaded and throws fatal errors otherwise.

    I wrote the whole solution in detail over here – Current User ID Matches TRUE – Initialize Plugin

    Thanks!

  • The topic ‘Current User ID Matches TRUE – Initialize Plugin’ is closed to new replies.