bbp_get_reply_trash_link

  • apply_filters( 'bbp_get_reply_trash_link', $link_before . $actions . $link_after, $args )

    Source Reference:

    • Component: bbPress :: bbp-reply
      File: /bbp-includes/bbp-reply-template.php :: Trac Source Line: 1569
      		}
      
      		if ( bbp_is_reply_trash( $reply->ID ) || !EMPTY_TRASH_DAYS ) {
      			$actions['delete']  = '<a title="' . esc_attr( __( 'Delete this item permanently', 'bbpress' ) ) . '" href="' . esc_url( wp_nonce_url( add_query_arg( array( 'action' => 'bbp_toggle_reply_trash', 'sub_action' => 'delete', 'reply_id' => $reply->ID ) ), 'delete-' . $reply->post_type . '_' . $reply->ID ) ) . '" onclick="return confirm('' . esc_js( __( 'Are you sure you want to delete that permanently?', 'bbpress' ) ) . '' );">' . esc_html( $delete_text ) . '</a>';
      		}
      
      		// Process the admin links
      		$actions = implode( $sep, $actions );
      
      		return apply_filters( 'bbp_get_reply_trash_link', $link_before . $actions . $link_after, $args );
      	}
      
      /**
       * Output the spam link of the reply
       *
       * @since bbPress (r2740)
       *
       * @param mixed $args See {@link bbp_get_reply_spam_link()}
       * @uses bbp_get_reply_spam_link() To get the reply spam link
       */
      

Comments are closed.