Restrict view of FlipBooks to owner/administrator
-
Hi there,
Is there a hook that will allow me to restrict users to only be able to see FlipBooks that they have created, something similar to the below for media?
add_filter( 'ajax_query_attachments_args', 'wpb_show_current_user_attachments' ); function wpb_show_current_user_attachments( $query ) { $user_id = get_current_user_id(); if ( $user_id && !current_user_can('edit_others_posts') ) { $query['author'] = $user_id; } return $query; }
I just want to make sure people can only see their own FlipBooks in the back end.
Thanks,
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Restrict view of FlipBooks to owner/administrator’ is closed to new replies.