Hi Ravi
https://github.com/mediapress/mpp-global-shared-gallery
worked…thank you!
But an additional question..With Global Shared Galleries…is there any way the media a user uploads
has control over at all? Able to delete…etc.Is there anything I can do?
Thanks for your assistance!!
Hello Mike,
Thank you for posting. I have added edit and delete capability on media user has uploaded. Please check
Download the fresh copy of plugin:
https://github.com/mediapress/mpp-global-shared-gallery/archive/master.zip
Please let me know if it works or not.
Regards
RaviHello Mike,
Thank you for the acknowledgement. It is releated to the gallery publishing permission. Please try the follwoing code:
/** * Modify gallery activity. * * @param bool $can Can publish or not. * @param MPP_Gallery $gallery MediaPress gallery object. * @param int $user_id User id permission need to check. * * @return bool */ function buddydev_modify_user_can_publish( $can, $gallery, $user_id ) { if ( ! is_user_logged_in() ) { return $can; } // If gallery is shared allow user to publish. if ( get_post_meta( $gallery->id, '_mpp_is_all_upload_allowed', true ) ) { $can = true; } return $can; } add_filter( 'mpp_user_can_publish_gallery_activity', 'buddydev_modify_user_can_publish', 10, 3 );
Please let me know if it works or not.
Regards
Ravi
You must be logged in to reply to this topic.