Change WordPress user roles and capabilities › Forums › How to or FAQ › Defining Posts View Access in php › Reply To: Defining Posts View Access in php
31/12/2020 at 11:43 #7230
Does it work with custom post type and media?
if I use the ID into the array ?
$restriction[‘data’][‘posts’] = array(ID Of the media or post type)