Skip to:
Content

bbPress.org


Ignore:
Timestamp:
11/16/2025 11:04:14 PM (9 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/tools/converter.php

    r7046 r7361  
    5151        }
    5252
    53         // Filter & return
     53        /**
     54         * Filters the array of available converters.
     55         *
     56         * @since 2.6.0 bbPress (r6447)
     57         *
     58         * @param array $files Array of available converters with names as keys and file paths as values.
     59         */
    5460        return (array) apply_filters( 'bbp_get_converters', $files );
    5561}
     
    96102        }
    97103
    98         // Filter & return
     104        /**
     105         * Filters the newly created converter object.
     106         *
     107         * @since 2.0.0
     108         *
     109         * @param mixed  $converter The converter object if it exists, null otherwise.
     110         * @param string $platform  Name of the platform class used for conversion.
     111         */
    99112        return apply_filters( 'bbp_new_converter', $converter, $platform );
    100113}
Note: See TracChangeset for help on using the changeset viewer.