Plugin Author
Kento
(@proaktion)
Hi George,
You can assign access restrictions groups using Groups_Post_Access::create( $map ) where $map hold the post_id and group_id.
For example:
Groups_Post_Access::create( array( 'post_id' => 123, 'group_id' => 9 ) );
Cheers
Thread Starter
George
(@quantum_leap)
Hi Kento.
I am sorry but I missed the automatic reply to my email. Can you please be a bit more specific? Where do I write this code? What I am after: I want to automatically assign the group with id of “4” to newly created or imported posts. Is it possible for that group to be automatically assigned (top right box to be automatically populated) when I create a new post through the WordPress admin?