Let users only pick from their own posts to insert
-
Hi, we have product (actually seminar) descriptions set up as posts, and insert these on woocommerce product pages – works great so far.
Now we want to open up for external trainers, and I have to find a way to let people of a certain user role see only their own posts in the dropdown list to pick from.
I looked at your code example for only show posts
return array( 'post' );
but am a bit stumbled on how to expand that. I tried areturn get_posts();
instead but that gave me an empty dropdown list.Do you have a suggestion how to do that?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Let users only pick from their own posts to insert’ is closed to new replies.