Skip to:
Content

bbPress.org


Ignore:
Timestamp:
11/16/2025 11:04:14 PM (3 months ago)
Author:
johnjamesjacoby
Message:

Tools - Code Improvement: Document some filters.

This commit improves the code documentation of several filters across the codebase.

Props johnjamesjacoby, narenin, sirlouen.

In trunk, for 2.7.

See #3110.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/admin/replies.php

    r7360 r7361  
    612612    private function get_row_action_sort_order() {
    613613
    614         // Filter & return
     614        /**
     615         * Filters the row action sort order for replies.
     616         *
     617         * @since 2.6.0 bbPress (r6771)
     618         *
     619         * @param array $order The default sort order.
     620         */
    615621        return (array) apply_filters( 'bbp_admin_reply_row_action_sort_order', array(
    616622            'edit',
     
    635641    private function get_allowed_notice_toggles() {
    636642
    637         // Filter & return
    638         return apply_filters( 'bbp_admin_replies_allowed_notice_toggles', array(
     643        /**
     644         * Filters the allowed notice toggles for replies.
     645         *
     646         * @since 2.6.0 bbPress (r6396)
     647         *
     648         * @param array $toggles The default notice toggles.
     649         */
     650        return (array) apply_filters( 'bbp_admin_replies_allowed_notice_toggles', array(
    639651            'spammed',
    640652            'unspammed',
     
    653665    private function get_allowed_action_toggles() {
    654666
    655         // Filter & return
    656         return apply_filters( 'bbp_admin_replies_allowed_action_toggles', array(
     667        /**
     668         * Filters the allowed action toggles for replies.
     669         *
     670         * @since 2.6.0 bbPress (r6396)
     671         *
     672         * @param array $toggles The default action toggles.
     673         */
     674        return (array) apply_filters( 'bbp_admin_replies_allowed_action_toggles', array(
    657675            'bbp_toggle_reply_spam',
    658676            'bbp_toggle_reply_approve'
     
    679697        );
    680698
    681         // Filter & return
    682         return apply_filters( 'bbp_admin_replies_column_headers', $columns );
     699        /**
     700         * Filters the column headers for the replies page.
     701         *
     702         * @since 2.0.0 bbPress (r2577)
     703         *
     704         * @param array $columns The column headers.
     705         */
     706        return (array) apply_filters( 'bbp_admin_replies_column_headers', $columns );
    683707    }
    684708
Note: See TracChangeset for help on using the changeset viewer.