Replies
- Ravi on March 4, 2022 at 6:51 am in reply to: [Resolved] Please add filter to BP Default Group Tab plugin #43678
Hello Nick,
Thank you for posting here. We will release the update in the future version. For the time being You can use the following code:
/** * Check and redirect on the restricted tab * * @param int $group_id Group id. */ function buddydev_check_redirect_restricted_tab( $group_id ) { if ( ! groups_is_user_admin( get_current_user_id(), $group_id ) || ! bp_is_group_admin_screen( 'group-settings' ) ) { return; } if ( ! empty( $_POST['group_default_tab'] ) && 'members' == $_POST['group_default_tab'] ) { bp_core_add_message( sprintf( 'Members tab can not be use as default tab.' ), 'error' ); bp_core_redirect( bp_get_group_admin_permalink( $group_id ) . 'group-settings' ); } } add_action( 'groups_group_settings_edited', 'buddydev_check_redirect_restricted_tab', 9 );
It will restrict group admin to save the ‘members’ tab as the default tab. You can replace this with your own tab slug. Please give it a try and let me know if it works or not.
Regards
Ravi Hello Joanne,
Thank you for posting here. Please take a look at the following plugin:
https://github.com/mediapress/mpp-gallery-categories/archive/refs/heads/master.zip
It does allow applying categories on MediaPress Galleries and filtering them based on category.
Please let me know if it helps you or not.
Regards
Ravi- Ravi on March 3, 2022 at 9:18 am in reply to: [Resolved] Pay Per Post by selling access with WooCommerce #43668
Hello Tosin,
Try the following code:
add_action( 'bblpro_ppp_post_published', function( $post_id ) { $post_type = get_post_type( $post_id ); if ( 'post' != $post_type ) { return; } // Get category. $newcat = get_term_by( 'name', 'Sponsored posts', 'category' ); if ( ! $newcat ) { return; } wp_set_post_categories( $post_id, $newcat->term_id, true ); } );
Please check and let me know if it helps or not.
Regards
Ravi Hello Uros,
a) it seems BuddyPress only list those sites that the user has created. Because BuddyPress or BuddyBoss Platform manage this you should contact them regarding this issue. They can assist you better with this issue.
b) For leaving site functionality in the join blog widget plugin. We can not help you due to a lack of development time. But in future we will add this feature.Regards
Ravi- Ravi on March 2, 2022 at 5:54 am in reply to: [Resolved] BuddyPress Activity Shortcode – Set length (word count) of the text #43658
Hello Yuriix,
I have checked this and found no easy way to truncate the title. Sorry, I can not help you much with this.
Regards
Ravi - Ravi on March 2, 2022 at 5:30 am in reply to: [Resolved] Pay Per Post by selling access with WooCommerce #43657
Hello Tosin,
Please take a look at the following action:
do_action( 'bblpro_ppp_post_published', $post_id, $form_id );
It will fire once the WooCommerce order is completed and after publishing the post.
Regards
Ravi - Ravi on March 2, 2022 at 5:26 am in reply to: [Resolved] BuddyPress Activity Shortcode – Set length (word count) of the text #43656
Hello Yuriix,
Thank you for the acknowledgment. I will take a look at the title and will let you know.
Regards
Ravi - Ravi on March 2, 2022 at 5:22 am in reply to: [Resolved] WordPress Comments in Buddypress main Activity Stream not show #43655
Hello Yuriix,
Thank you for the acknowledgment. I am glad that I could help you.
Regards
Ravi - Ravi on March 2, 2022 at 5:16 am in reply to: [Resolved] XProfile Custom Fields allowed file types #43654
Hello John,
Thank you for the acknowledgment. I am glad that I could help you.
Regards
Ravi Hello Uros,
Thank you for the acknowledgment. For your other requirements, I will take a look at the feasibility and will let you know soon.
Regards
Ravi