WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] If post author = admin conditional statement?

[Resolved] If post author = admin conditional statement?

  • Wondering if anyone knows how I can do a check to see “if the post’s author is an ADMIN” or “if the posts’ author is a CONTRIBUTOR”

    I want to do something like this:

    if (post_author == CONTRIBUTOR) { do this }
    else { do this }

    Any ideas?

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘[Resolved] If post author = admin conditional statement?’ is closed to new replies.