Replies
Hello Clyn,
Thank you for the acknowledgement. For that first you have to find all the user ids for that specific role and then simple pass those ids to “author__in” clause of the query. Hope it will help.
Thank you
RaviHello Chrish,
No, this case will not be matched.
Hello Chris,
Thank You for posting. Yes, *.spammer.com will work.
Thank You
RaviHello Clyn,
Thank you for the acknowledgement. Try printing “$follwing_user_ids” this variable and check weather this variable have empty value or array of user ids that he is following and let me know.
Thanks
RaviHello Clyn,
Thank for posting. Try this and let me know if it works or not. Please refer the following url:
https://gist.github.com/raviousprime/b35211c906904d1d3e3dfe4bc9a0318a
Thank You
Ravi- Ravi on May 8, 2018 at 4:29 pm in reply to: [Resolved] Need to delete a textline in BuddyBlog plugin #14986
Hello Daniel,
You have to override the template as mentioned above and manually delete the code from that template. With CSS there is not proper selector available for “New post” link in the template if we do it with twenetyseventeen theme. It can doable with the following CSS code
div#item-body a[href$="buddyblog/edit/"] { display: none; }But might affect any other place.
Thank You
Ravi - Ravi on May 8, 2018 at 9:42 am in reply to: [Resolved] Auto delete "already red" buddypress notification #14983
Hello Julia,
Please use the following code in your bp-custom.php.
function buddydev_remove_separator( $retval, $r ) { $retval = str_replace( ' | ', ' ', $retval ); return $retval; } add_filter( 'bp_get_the_notification_action_links', 'buddydev_remove_separator', 10, 2 );Thank You
Ravi Hello Jim,
There is a WordPress plugin which shows attached functions on different hooks. That might help you
to get more accurate info. You can download the plugin from the following URL.https://wordpress.org/plugins/simply-show-hooks/
Thank you
Ravi- This reply was modified 8 years, 5 months ago by
Ravi.
- This reply was modified 8 years, 5 months ago by
- Ravi on May 6, 2018 at 9:03 pm in reply to: Scope="following and load_more=1 don't work together #14928
Thank you for testing.
I checked again and I see that you have 4 instances of the shortcode.
can you please create a normal page without Visual Composer and test with only one shortcode.
Thank you
Ravi - Ravi on May 6, 2018 at 8:44 pm in reply to: [Resolved] Prevent user from deleting their activity #14925
Hi NikB,
Please add the following code to your bp-custom.php
/** * Disable BuddyPress activity delete by the user. * * @param bool $can_delete flag. * @param BP_Activity_Activity $activity Activity object. * * @return bool */ function buddydev_disable_activity_delete( $can_delete, $activity ) { if ( ! is_super_admin() ) { $can_delete = false; } return $can_delete; } add_filter( 'bp_activity_user_can_delete', 'buddydev_disable_activity_delete', 10, 2 );Regards
Ravi