Hi Mike,
I am sorry for the delayed reply. We had too many off days this week. I am asking @ravisharma to check and see if he can assist you tomorrow.Regards
BrajeshPlease resend the plugin link to me
and also maybe I’m inserting code in the wrong file…which file should I be inserting it to?
/**
* 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 );Hello Mike,
Plugin downloadable link same as provided earlier.
You can put the code in “bp-custom.php”. For more info check the following link:
https://buddydev.com/docs/buddypress-guides/what-is-bp-custom-php/Regards
Ravi
You must be logged in to reply to this topic.