Hello Tosin,
Please try the following code. Replace your code with this
function bpdelete_remove_activity_delete_text(){ $url = bp_get_activity_delete_url(); $class = 'delete-activity'; $link = '<a href="' . esc_url( $url ) . '" class="button item-button bp-secondary-action delete-activity confirm no-ajaxy fas fa-trash-alt" rel="nofollow">' . __( '', 'buddypress' ) . '</a>'; return $link; } add_filter('bp_get_activity_delete_link', 'bpdelete_remove_activity_delete_text', 9 );
Please let me know if it works or not.
Regards
RaviHello Tosin,
It seems you have not used my code. Make sure in your bp-custom.php file. The following filter attached with priority 9
add_filter('bp_get_activity_delete_link', 'bpdelete_remove_activity_delete_text', 9 );
Or please post me code from bp-custom.php again.
Regards
RaviThis is the code im my bp-custom.php file
function bpdelete_remove_activity_delete_text(){ $url = bp_get_activity_delete_url(); $class = 'delete-activity'; $link = '<a href="' . esc_url( $url ) . '" class="button item-button bp-secondary-action delete-activity confirm no-ajaxy fas fa-trash-alt" rel="nofollow">' . __( '', 'buddypress' ) . '</a>'; return $link; } add_filter('bp_get_activity_delete_link', 'bpdelete_remove_activity_delete_text', 9 );
The topic ‘ [Resolved] Activity confirm action support for confirm bp action plugin’ is closed to new replies.
This topic is: resolved