Replies
Would it also be possible to add the delete button to activity feed
Hi Ravi
Please kindly ignore as buddyblog was deactivated from the sitewide activity page
This is now resolved
I got the second one figured out by changing bp_activity_entry_meta
Updated code below
/* Add buddyblog edit button to activity feed */ add_action( 'bp_activity_entry_meta', function () { global $activities_template; if ( ! function_exists( 'bblpro_get_post_edit_link' ) || empty( $activities_template->activity ) || empty( $activities_template->activity->secondary_item_id ) ) { return; } $post_id = $activities_template->activity->secondary_item_id; $form_id = bblpro_post_get_form_id( $post_id ); if ( $form_id ) { echo bblpro_get_post_edit_link( $post_id, array( 'label' => esc_html( 'Edit / Promote Post' ) ) ); } } );
Now I just need to display the button in the sitewide activity directory
Hello Ravi,
Thanks for the code but I need 2 adjustments
1. I also want the button to show in the sitewide activity directory
2. The button is being displayed in the (activity-inner) section instead of (activity-meta) section. I want the link to be displayed in the activity-meta area as an activity-meta button
Thanks
Kind reminder sir
Hello Brajesh,
I recently noticed that the code takes effect when editing a post which is not a good idea to display the message (There is one Post with the same title!) since the post is only being edited so there should not be any checks made while editing already published content.
Thanks
- Tosin on December 1, 2022 at 10:14 am in reply to: [Resolved] Buddyblog auto update permalinks #47531
Ok Thanks for the clarification
I have also needed this bookmark plugin for quite a while
Thanks Ravi,
The code worked perfectly
Can you take a look at this https://gist.github.com/dzeroone/4cb02ad04ac8309e7fd7