Skip to content

[Resolved] required operation when user has no exceptions

Home Forums Developer Support required operation when user has no exceptions

This topic contains 3 replies, has 2 voices, and was last updated by 3 years, 2 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #20645 Reply

    Using WP_Query (non ajax) to get posts with the required_operation => “read” arguement works as expected on users with any exceptions attached to them but a fresh user without any exceptions returns all posts regardless of read permission.

    Is this a bug or am I doing something wrong?


    $options = array(
    'post_type' => array('students'), 'posts_per_page' => -1, 'required_operation' => 'read', // this is the most valuable line ever. );

    #20646 Reply

    [ login required ]

    #20647 Reply

    [ login required ]

    #20648 Reply

    [ login required ]

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.

Registered members have full access to Pro support forums here.

Feel free to log in or purchase a support key.