WordPress.org

Forums

Restrict Categories
How detect if a post is rectricted ? (1 post)

  1. phil_poitiers
    Member
    Posted 1 year ago #

    To ay I use this code to display the log form in my article

    <?php
    if (! is_user_logged_in() ) {
    wp_login_form();
    }
    ?>

    but the form is always display.
    How can I do to displayt it only when the article is restricted ?

    Thanks

    https://wordpress.org/plugins/restrict-categories/

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Restrict Categories
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.