Ok…limitedly tested, so please test further before going live. I have also added tooltips for those using this to easily identify the purpose of each image. Be advised, I am no developer…so you’re on your own. I can not confirm if this causes any security issues. I have been having issues creating this post due to
ERROR: Duplicate reply detected; it looks as though you’ve already said that.
Please disregard all previous attempts and keep this latest post!
1) Put the code at the bottom of your child theme’s functions.php file.
2) You will need to use your own icons or images.
3) All image titles are hard-coded, so either ensure all images are renamed or edit the snippet accordingly.
add_filter ('bbp_before_get_topic_edit_link_parse_args' , 'my_edit_topic_filter', 10 , 1 ) ;
function my_edit_topic_filter ($args) {
$args['edit_text'] = '<img src="../../wp-content/themes/dna-child/images/edit.png" style="cursor:pointer;" title="EDIT">' ;
return $args ;
}
add_filter ('bbp_before_get_topic_merge_link_parse_args' , 'my_merge_topic_filter', 10 , 1 ) ;
function my_merge_topic_filter ($args) {
$args['merge_text'] = '<img src="../../wp-content/themes/dna-child/images/merge.png" style="cursor:pointer;" title="MERGE">' ;
return $args ;
}
add_filter ('bbp_before_get_topic_close_link_parse_args' , 'my_close_topic_filter', 10 , 1 ) ;
function my_close_topic_filter ($args) {
$args['close_text'] = '<img src="../../wp-content/themes/dna-child/images/close.png" style="cursor:pointer;" title="LOCK">' ;
$args['open_text'] = '<img src="../../wp-content/themes/dna-child/images/open.png" style="cursor:pointer;" title="UNLOCK">' ;
return $args ;
}
add_filter ('bbp_before_get_topic_stick_link_parse_args' , 'my_stick_topic_filter', 10 , 1 ) ;
function my_stick_topic_filter ($args) {
$args['stick_text'] = '<img src="../../wp-content/themes/dna-child/images/stick.png" style="cursor:pointer;" title="STICKY">' ;
$args['unstick_text'] = '<img src="../../wp-content/themes/dna-child/images/unstick.png" style="cursor:pointer;" title="UNSTICKY">' ;
$args['super_text'] = '<img src="../../wp-content/themes/dna-child/images/super.png" style="cursor:pointer;" title="GLOBAL STICKY">' ;
return $args ;
}
add_filter ('bbp_before_get_topic_trash_link_parse_args' , 'my_trash_topic_filter', 10 , 1 ) ;
function my_trash_topic_filter ($args) {
$args['trash_text'] = '<img src="../../wp-content/themes/dna-child/images/trash.png" style="cursor:pointer;" title="TRASH">' ;
$args['restore_text'] = '<img src="../../wp-content/themes/dna-child/images/restore.png" style="cursor:pointer;" title="RESTORE">' ;
$args['Delete_text'] = '<img src="../../wp-content/themes/dna-child/images/delete.png" style="cursor:pointer;" title="DELETE">' ;
return $args ;
}
add_filter ('bbp_before_get_topic_spam_link_parse_args' , 'my_spam_topic_filter', 10 , 1 ) ;
function my_spam_topic_filter ($args) {
$args['spam_text'] = '<img src="../../wp-content/themes/dna-child/images/spam.png" style="cursor:pointer;" title="SPAM">' ;
$args['unspam_text'] = '<img src="../../wp-content/themes/dna-child/images/unspam.png" style="cursor:pointer;" title="UNSPAM">' ;
return $args ;
}
add_filter ('bbp_before_get_topic_approve_link_parse_args' , 'my_approve_topic_filter', 10 , 1 ) ;
function my_approve_topic_filter ($args) {
$args['approve_text'] = '<img src="../../wp-content/themes/dna-child/images/approve.png" style="cursor:pointer;" title="APPROVE">' ;
$args['unapprove_text'] = '<img src="../../wp-content/themes/dna-child/images/unapprove.png" style="cursor:pointer;" title="DISAPPROVE">' ;
return $args ;
}
add_filter ('bbp_before_get_topic_reply_link_parse_args' , 'my_reply_topic_filter', 10 , 1 ) ;
function my_reply_topic_filter ($args) {
$args['reply_text'] = '<img src="../../wp-content/themes/dna-child/images/reply.png" style="cursor:pointer;" title="REPLY">' ;
return $args ;
}
add_filter ('bbp_before_get_topic_split_link_parse_args' , 'my_split_topic_filter', 10 , 1 ) ;
function my_split_topic_filter ($args) {
$args['split_text'] = '<img src="../../wp-content/themes/dna-child/images/split.png" style="cursor:pointer;" title="SPLIT">' ;
return $args ;
}
add_filter ('bbp_before_get_reply_edit_link_parse_args' , 'my_edit_reply_filter', 10 , 1 ) ;
function my_edit_reply_filter ($args) {
$args['edit_text'] = '<img src="../../wp-content/themes/dna-child/images/edit.png" style="cursor:pointer;" title="EDIT">' ;
return $args ;
}
add_filter ('bbp_before_get_reply_move_link_parse_args' , 'my_move_reply_filter', 10 , 1 ) ;
function my_move_reply_filter ($args) {
$args['split_text'] = '<img src="../../wp-content/themes/dna-child/images/move.png" style="cursor:pointer;" title="MOVE">' ;
return $args ;
}
add_filter ('bbp_before_get_reply_close_link_parse_args' , 'my_close_reply_filter', 10 , 1 ) ;
function my_close_reply_filter ($args) {
$args['close_text'] = '<img src="../../wp-content/themes/dna-child/images/close.png" style="cursor:pointer;" title="LOCK">' ;
$args['open_text'] = '<img src="../../wp-content/themes/dna-child/images/open.png" style="cursor:pointer;" title="UNLOCK">' ;
return $args ;
}
add_filter ('bbp_before_get_reply_trash_link_parse_args' , 'my_trash_reply_filter', 10 , 1 ) ;
function my_trash_reply_filter ($args) {
$args['trash_text'] = '<img src="../../wp-content/themes/dna-child/images/trash.png" style="cursor:pointer;" title="TRASH">' ;
$args['restore_text'] = '<img src="../../wp-content/themes/dna-child/images/restore.png" style="cursor:pointer;" title="RESTORE">' ;
$args['delete_text'] = '<img src="../../wp-content/themes/dna-child/images/delete.png" style="cursor:pointer;" title="DELETE">' ;
return $args ;
}
add_filter ('bbp_before_get_reply_spam_link_parse_args' , 'my_spam_reply_filter', 10 , 1 ) ;
function my_spam_reply_filter ($args) {
$args['spam_text'] = '<img src="../../wp-content/themes/dna-child/images/spam.png" style="cursor:pointer;" title="SPAM">' ;
$args['unspam_text'] = '<img src="../../wp-content/themes/dna-child/images/unspam.png" style="cursor:pointer;" title="UNSPAM">' ;
return $args ;
}
add_filter ('bbp_before_get_reply_approve_link_parse_args' , 'my_approve_reply_filter', 10 , 1 ) ;
function my_approve_reply_filter ($args) {
$args['approve_text'] = '<img src="../../wp-content/themes/dna-child/images/approve.png" style="cursor:pointer;" title="APPROVE">' ;
$args['unapprove_text'] = '<img src="../../wp-content/themes/dna-child/images/unapprove.png" style="cursor:pointer;" title="DISAPPROVE">' ;
return $args ;
}
add_filter ('bbp_before_get_reply_to_link_parse_args' , 'my_reply_to_filter', 10 , 1 ) ;
function my_reply_to_filter ($args) {
$args['reply_text'] = '<img src="../../wp-content/themes/dna-child/images/reply.png" style="cursor:pointer;" title="REPLY">' ;
return $args ;
}