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/forums.php

    r7360 r7361  
    483483    private function get_row_action_sort_order() {
    484484
    485         // Filter & return
     485        /**
     486         * Filters the row action sort order.
     487         *
     488         * @since 2.6.0 bbPress (r6771)
     489         *
     490         * @param array $order The default sort order.
     491         */
    486492        return (array) apply_filters( 'bbp_admin_forum_row_action_sort_order', array(
    487493            'edit',
     
    503509    private function get_allowed_notice_toggles() {
    504510
    505         // Filter & return
    506         return apply_filters( 'bbp_admin_forums_allowed_notice_toggles', array(
     511        /**
     512         * Filters the allowed notice toggles.
     513         *
     514         * @since 2.6.0 bbPress (r6396)
     515         *
     516         * @param array $toggles The default notice toggles.
     517         */
     518        return (array) apply_filters( 'bbp_admin_forums_allowed_notice_toggles', array(
    507519            'opened',
    508520            'closed'
     
    519531    private function get_allowed_action_toggles() {
    520532
    521         // Filter & return
     533        /**
     534         * Filters the allowed action toggles.
     535         *
     536         * @since 2.6.0 bbPress (r6396)
     537         *
     538         * @param array $toggles The default action toggles.
     539         */
    522540        return apply_filters( 'bbp_admin_forums_allowed_action_toggles', array(
    523541            'bbp_toggle_forum_close'
     
    553571        }
    554572
    555         // Filter & return
    556         return apply_filters( 'bbp_admin_forums_column_headers', $columns );
     573        /**
     574         * Filters the column headers for the forums page.
     575         *
     576         * @since 2.0.0 bbPress (r2485)
     577         *
     578         * @param array $columns The column headers.
     579         */
     580        return (array) apply_filters( 'bbp_admin_forums_column_headers', $columns );
    557581    }
    558582
Note: See TracChangeset for help on using the changeset viewer.