Home Forums WordPress Plugins Changing the order of forums in the digest Reply To: Changing the order of forums in the digest


Hi Jamie,

Sorry for the wait. As of Digests version 1.25, you can hook into the bbpnns_queue_order_by filter to change the order.

The default order has also been set to order by q.post_id, q.timestamp ASC, where q is the alias to bbpnns_digest_queue table.

To change the order, do the following:

add_filter( 'bbpnns_queue_order_by', 'my_custom_digest_order', 10, 1 );

function my_custom_digest_order( $order_by )
     * Available fields are:
     * - q.notification_id 
     * - q.user_id
     * - q.forum_id
     * - q.post_id
     * - q.post_type
     * - q.timestamp 
    $order_by = 'order by q.post_id DESC'; // See http://www.mysqltutorial.org/mysql-order-by for examples.
    return $order_by;